* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a237e;
    --primary-light: #3f51b5;
    --primary-lighter: #e8eaf6;
    --primary-dark: #0d1442;
    --primary-gradient: linear-gradient(135deg, #1a237e 0%, #3f51b5 50%, #5c6bc0 100%);
    --success: #10b981;
    --success-bg: #d1fae5;
    --warning: #f59e0b;
    --warning-bg: #fef3c7;
    --danger: #ef4444;
    --danger-bg: #fee2e2;
    --info: #3b82f6;
    --info-bg: #dbeafe;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --white: #ffffff;
    --sidebar-width: 260px;
    --header-height: 64px;
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.15);
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--gray-50);
    color: var(--gray-800);
    font-size: 18px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ===== LOGIN ===== */
body.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #5ce0d8 0%, #3098c8 30%, #1870b0 60%, #104890 100%);
    position: relative;
    overflow: hidden;
}

body.login-body::before {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    top: -300px;
    right: -200px;
}

body.login-body::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
    bottom: -150px;
    left: -150px;
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.login-card {
    background: var(--white);
    border-radius: 24px;
    padding: 48px 44px 44px;
    box-shadow: 0 30px 80px rgba(13,20,66,0.35);
    border: 1px solid rgba(255,255,255,0.15);
    animation: float 5s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1a237e, #3949ab, #5c6bc0, #7986cb, #5c6bc0, #3949ab, #1a237e);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

.login-header {
    text-align: center;
    margin-bottom: 36px;
}

.login-header h1 {
    font-size: 44px;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 4px;
    background: linear-gradient(135deg, #1a237e 0%, #3949ab 50%, #5c6bc0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-header p {
    color: var(--gray-500);
    font-size: 18px;
}

.login-card .form-group {
    margin-bottom: 20px;
}

.login-card .form-group label {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.login-card .form-group input {
    height: 48px;
    padding: 0 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 18px;
    transition: var(--transition);
    background: var(--gray-50);
}

.login-card .form-group input:focus {
    border-color: var(--primary-light);
    background: var(--white);
    box-shadow: 0 0 0 4px var(--primary-lighter);
}

.login-card .btn-primary {
    height: 48px;
    font-size: 18px;
    font-weight: 600;
    border-radius: var(--radius);
    margin-top: 8px;
}

.login-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26,35,126,0.35);
}

.login-card .btn-primary:active {
    transform: translateY(0);
}

/* ===== APP LAYOUT ===== */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* ===== SIDEBAR ===== */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #0d9488 0%, #0891b2 30%, #0284c7 60%, #1d4ed8 100%);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 20px rgba(0,0,0,0.15);
    overflow: hidden;
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(0,0,0,0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.sidebar-brand {
    padding: 24px 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.sidebar-brand-logo {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.sidebar-brand-logo:hover {
    background: rgba(255,255,255,0.25);
    transform: scale(1.05);
}

.sidebar-brand-text h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.5px;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.sidebar-brand-text span {
    font-size: 11px;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.sidebar-nav {
    padding: 12px 0;
    flex: 1;
    overflow-y: auto;
    position: relative;
    z-index: 1;
}

.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
}

.sidebar-section-label {
    padding: 24px 24px 8px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.5);
    font-weight: 700;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    margin: 4px 12px;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    border-radius: var(--radius);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    gap: 14px;
    font-size: 24px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.nav-item::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease, opacity 0.6s ease;
    opacity: 0;
    pointer-events: none;
}

.nav-item:active::after {
    width: 300px;
    height: 300px;
    opacity: 1;
    transition: 0s;
}

.nav-item:hover {
    background: rgba(255,255,255,0.15);
    color: var(--white);
    transform: translateX(6px) scale(1.02);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.nav-item.active {
    background: rgba(255,255,255,0.2);
    color: var(--white);
    font-weight: 700;
    box-shadow: inset 4px 0 0 #fff, 0 4px 20px rgba(0,0,0,0.15);
    transform: translateX(4px);
}

.nav-icon {
    font-size: 24px;
    width: 28px;
    text-align: center;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.nav-text {
    font-size: 24px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.sidebar-divider {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.15);
    margin: 10px 20px;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 50%, #f0f4ff 100%);
    background-attachment: fixed;
}

/* ===== HEADER ===== */
.top-header {
    height: var(--header-height);
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--gray-600);
    padding: 6px;
    border-radius: var(--radius-sm);
}

.mobile-menu-btn:hover {
    background: var(--gray-100);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.project-selector {
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-selector label {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-600);
}

.project-selector select {
    padding: 10px 36px 10px 14px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    background: var(--gray-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 12px center;
    font-size: 16px;
    font-family: inherit;
    min-width: 220px;
    cursor: pointer;
    transition: var(--transition);
    appearance: none;
    -webkit-appearance: none;
}

.project-selector select:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px var(--primary-lighter);
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 6px;
    background: var(--gray-50);
    border-radius: 50px;
    border: 1px solid var(--gray-100);
    transition: var(--transition);
}

.user-badge:hover {
    border-color: var(--gray-200);
    box-shadow: var(--shadow-xs);
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 15px;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(26,35,126,0.2);
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 700;
    font-size: 16px;
    color: var(--gray-800);
    line-height: 1.2;
}

.user-rol {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.2;
}

/* ===== CONTENT ===== */
.content-area {
    flex: 1;
    padding: 32px 36px;
    max-width: 1440px;
    width: 100%;
}

/* ===== SECTION PREVIEW ===== */
.section-preview {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--gray-200);
    padding: 18px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.preview-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.preview-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-lighter);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(26,35,126,0.08);
}

.preview-title-area {
    display: flex;
    flex-direction: column;
}

.preview-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
    letter-spacing: -0.3px;
    margin: 0;
}

.preview-desc {
    font-size: 16px;
    color: var(--gray-500);
    margin: 2px 0 0;
}

.current-project-badge {
    background: var(--success-bg);
    color: var(--success);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ===== CARDS ===== */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow);
    border-color: var(--gray-200);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.card-header h2,
.card-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
    letter-spacing: -0.3px;
    margin: 0;
}

.card-body {
    color: var(--gray-700);
    font-size: 18px;
}

/* ===== DASHBOARD GRID ===== */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 28px;
}

.stat-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 28px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    border-radius: 0 2px 2px 0;
}

.stat-card:nth-child(1)::before { background: var(--primary); }
.stat-card:nth-child(2)::before { background: var(--success); }
.stat-card:nth-child(3)::before { background: var(--warning); }
.stat-card:nth-child(4)::before { background: var(--danger); }

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.stat-icon.blue { background: var(--primary-lighter); color: var(--primary); }
.stat-icon.green { background: var(--success-bg); color: var(--success); }
.stat-icon.amber { background: var(--warning-bg); color: var(--warning); }
.stat-icon.red { background: var(--danger-bg); color: var(--danger); }

.stat-content {
    flex: 1;
}

.stat-content h3 {
    font-size: 13px;
    font-weight: 700;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
}

.stat-number {
    font-size: 30px;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1.2;
    letter-spacing: -1px;
}

/* ===== PROGRESS BARS ===== */
.progress-dual {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.progress-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.progress-header label {
    font-weight: 700;
    font-size: 18px;
    color: var(--gray-700);
}

.progress-header span {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
}

.progress-bar {
    height: 12px;
    background: var(--gray-100);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.2) 50%, transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-fill.physical {
    background: linear-gradient(90deg, #059669, #34d399);
}

.progress-fill.economic {
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

/* ===== KANBAN ===== */
.kanban-board {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 24px;
    min-height: 500px;
}

.kanban-column {
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-lg);
    padding: 16px;
    min-height: 300px;
    border: 1px solid var(--gray-200);
}

.kanban-column-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 4px 14px;
    margin-bottom: 14px;
    border-bottom: 2px solid var(--gray-200);
}

.kanban-column-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-700);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.kanban-column-header .count {
    background: var(--gray-200);
    padding: 4px 12px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    color: var(--gray-600);
}

.kanban-column-header.prospecto { border-bottom-color: var(--info); }
.kanban-column-header.en_ejecucion { border-bottom-color: var(--success); }
.kanban-column-header.completado { border-bottom-color: var(--gray-400); }

.kanban-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 100px;
}

.kanban-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow-xs);
    border: 1px solid var(--gray-100);
    transition: var(--transition);
    cursor: default;
}

.kanban-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--gray-200);
    transform: translateY(-2px);
}

.kanban-card h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 10px;
}

.kanban-card p {
    font-size: 15px;
    color: var(--gray-500);
    margin: 4px 0;
}

/* ===== TABLES ===== */
.table-container {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.table-container .table {
    margin-bottom: 0;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 18px;
}

.table th {
    background: var(--gray-50);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--gray-500);
    padding: 16px 20px;
    text-align: left;
    border-bottom: 2px solid var(--gray-200);
}

.table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-700);
    vertical-align: middle;
}

.table tr:last-child td {
    border-bottom: none;
}

.table tr:hover td {
    background: var(--gray-50);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border: none;
    border-radius: var(--radius);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    gap: 8px;
    font-family: inherit;
    line-height: 1;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--white);
    box-shadow: 0 3px 10px rgba(26,35,126,0.2);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(26,35,126,0.35);
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
}

.btn-secondary:hover {
    background: var(--gray-200);
}

.btn-block {
    width: 100%;
}

/* ===== ESTADO BADGES ===== */
.estado-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    gap: 4px;
}

.estado-prospecto { background: var(--info-bg); color: var(--info); }
.estado-en_progreso { background: var(--success-bg); color: var(--success); }
.estado-pausado { background: var(--warning-bg); color: var(--warning); }
.estado-cerrado { background: var(--gray-100); color: var(--gray-500); }
.estado-pendiente { background: var(--warning-bg); color: var(--warning); }
.estado-validado { background: var(--success-bg); color: var(--success); }
.estado-rechazado { background: var(--danger-bg); color: var(--danger); }
.estado-riesgo { background: var(--danger-bg); color: var(--danger); font-weight: 700; }
.estado-disponible { background: var(--success-bg); color: var(--success); }
.estado-en_uso { background: var(--info-bg); color: var(--info); }
.estado-mantenimiento { background: var(--warning-bg); color: var(--warning); }

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

.badge.Disponible { background: var(--success-bg); color: var(--success); }
.badge.En\ Uso { background: var(--info-bg); color: var(--info); }
.badge.Mantenimiento { background: var(--warning-bg); color: var(--warning); }

/* ===== ALERTS ===== */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 18px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-danger {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid #fecaca;
}

.alert-success {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid #a7f3d0;
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 16px;
    color: var(--gray-700);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 18px;
    font-family: inherit;
    background: var(--white);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px var(--primary-lighter);
}

/* ===== TEXT UTILITIES ===== */
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.text-muted { color: var(--gray-500); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.font-bold { font-weight: 700; }

/* ===== WELCOME CARD ===== */
.welcome-card {
    text-align: center;
    padding: 56px 36px;
    background: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-sm);
}

.welcome-icon {
    font-size: 56px;
    margin-bottom: 20px;
    display: block;
}

.welcome-card h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.welcome-card p {
    color: var(--gray-500);
    max-width: 440px;
    margin: 0 auto 28px;
    font-size: 18px;
}

/* ===== EMPTY STATES ===== */
.empty-state {
    text-align: center;
    padding: 56px 28px;
    background: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-sm);
}

.empty-state p {
    color: var(--gray-500);
    max-width: 440px;
    margin: 0 auto 18px;
    font-size: 18px;
}

/* ===== DASHBOARD TWO-COLUMN ===== */
.dashboard-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* ===== PAGE HEADER ===== */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.page-header-left h1 {
    font-size: 24px;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}

.page-header-left p {
    font-size: 18px;
    color: var(--gray-500);
}

/* ===== FOOTER ===== */
.app-footer {
    text-align: center;
    padding: 20px 32px;
    color: var(--gray-400);
    font-size: 16px;
    border-top: 1px solid var(--gray-100);
}

/* ===== DECORATIVE ===== */
.main-content::before {
    content: '';
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(63,81,181,0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.main-content::after {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99,102,241,0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.content-area, .section-preview, .top-header, .app-footer {
    position: relative;
    z-index: 1;
}

/* ===== ANIMATIONS ===== */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .dashboard-two-col {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        box-shadow: none;
    }

    .sidebar.sidebar-open {
        transform: translateX(0);
        box-shadow: var(--shadow-xl);
    }

    .main-content {
        margin-left: 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    .content-area {
        padding: 24px 18px;
    }

    .top-header {
        padding: 0 18px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .stat-card {
        padding: 20px;
    }

    .stat-number {
        font-size: 24px;
    }

    .kanban-board {
        grid-template-columns: 1fr;
    }

    .project-selector {
        display: none;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .section-preview {
        padding: 14px 18px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .user-badge {
        padding: 6px;
    }

    .user-info {
        display: none;
    }

    .login-card {
        padding: 32px 24px;
    }

    .table-container {
        overflow-x: auto;
    }

    .page-header-left h1 {
        font-size: 20px;
    }

    .card {
        padding: 20px;
    }
}
