/* Construction Tracker - Ultra Modern Theme */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #2563eb;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #1e293b;
    --light: #f8fafc;
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    line-height: 1.6;
}

.container-fluid { max-width: 1400px; margin: 0 auto; padding: 20px; }

/* Navbar */
.navbar {
    background: rgba(255,255,255,0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
    border-radius: 0 0 20px 20px;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(45deg, var(--primary), #1d4ed8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Cards */
.card {
    border: none;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

/* Stats Cards */
.card-body h2 {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 5px;
}

.bg-primary { 
    background: linear-gradient(135deg, var(--primary), #1d4ed8) !important;
    color: white;
}
.bg-success { 
    background: linear-gradient(135deg, var(--success), #059669) !important; 
    color: white;
}
.bg-warning { 
    background: linear-gradient(135deg, var(--warning), #d97706) !important;
    color: #000;
}
.bg-info { 
    background: linear-gradient(135deg, #0ea5e9, #0284c7) !important; 
    color: white;
}

/* Forms */
.form-control, .form-select {
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    padding: 15px 20px;
    font-size: 1rem;
    transition: all 0.3s ease;
    height: 55px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(37,99,235,0.15);
    transform: translateY(-2px);
}

/* Buttons */
.btn {
    border-radius: 15px;
    padding: 12px 30px;
    font-weight: 700;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #1d4ed8);
    box-shadow: 0 8px 25px rgba(37,99,235,0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(37,99,235,0.4);
}

/* Table */
.table {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.table th {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    font-weight: 800;
    color: var(--dark);
    padding: 20px 15px;
    border: none;
}

.table td {
    padding: 20px 15px;
    border-color: rgba(0,0,0,0.05);
    vertical-align: middle;
}

.badge {
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.85rem;
}

/* Modal */
.modal-content {
    border-radius: 25px;
    border: none;
    box-shadow: 0 30px 60px rgba(0,0,0,0.25);
}

.modal-header {
    border-bottom: 1px solid #e2e8f0;
    padding: 30px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .container-fluid { padding: 15px; }
    .card-body h2 { font-size: 2rem; }
    .row.g-3 > div { margin-bottom: 15px !important; }
    .navbar-brand { font-size: 1.3rem; }
}

/* Loading */
@keyframes spin {
    to { transform: rotate(360deg); }
}
.loading {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 10px;
}

/* Success Alert */
.alert-success-custom {
    background: linear-gradient(135deg, var(--success), #059669);
    border-radius: 15px;
    color: white;
    font-weight: 700;
    box-shadow: var(--shadow);
}