:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary: #64748b;
    --secondary-hover: #475569;
    --success: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;
    --bg-body: #f8fafc;
    --surface: #ffffff;
    --border: #e2e8f0;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius-md: 12px;
    --radius-lg: 16px;
}

/* Base Styles */
body {
    background-color: var(--bg-body);
    color: var(--text-main);
}

/* Modern Card */
.modern-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    margin-bottom: 2rem;
    transition: box-shadow 0.3s ease;
}

.modern-card:hover {
    box-shadow: var(--shadow-lg);
}

/* Form Controls */
.form-control-modern {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.6rem 1rem;
    transition: all 0.2s ease;
    background-color: var(--surface);
}

.form-control-modern:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    outline: none;
}

/* Buttons */
.btn-modern-primary {
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: 0.6rem 1.25rem;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-modern-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: white;
}

.btn-modern-secondary {
    background-color: #f1f5f9;
    color: var(--secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.6rem 1.25rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-modern-secondary:hover {
    background-color: #e2e8f0;
    color: var(--secondary-hover);
}

/* Table Styles */
.table-modern {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table-modern thead th {
    background-color: #f8fafc;
    border-bottom: 2px solid var(--border);
    padding: 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.table-modern tbody td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background-color: #f8fbff;
}

/* Custom Scrollbar */
.moderno-scroll::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.moderno-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.moderno-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.moderno-scroll::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Utilities */
.text-gradient {
    background: linear-gradient(135deg, var(--primary), #4f46e5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Responsive Table (Card View) */
@media (max-width: 768px) {
    .table-modern thead {
        display: none;
    }

    .table-modern tbody tr {
        display: block;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        margin-bottom: 1rem;
        padding: 1rem;
        box-shadow: var(--shadow-sm);
    }

    .table-modern tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0;
        border-bottom: 1px solid #f1f5f9;
        text-align: right;
    }

    .table-modern tbody td:last-child {
        border-bottom: none;
        padding-top: 1rem;
    }

    .table-modern tbody td::before {
        content: attr(data-label);
        font-weight: 700;
        font-size: 0.75rem;
        color: var(--text-muted);
        text-transform: uppercase;
        margin-right: 1rem;
        text-align: left;
    }
}
