/* ======================================================
   MODERN SAAS DESIGN SYSTEM
====================================================== */
:root {
    --primary: #4f46e5;
    --primary-light: #6366f1;
    --success: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --border-soft: #e5e7eb;
}

/* ======================================================
   BASE
====================================================== */
body {
    background-color: var(--bg-main);
    font-size: 14px;
    color: var(--text-dark);
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.content-wrapper {
    background: var(--bg-main);
    padding: 28px 26px;
}

/* Typography refinement */
h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.02em;
}

p, td, th, label {
    line-height: 1.45;
}

/* ======================================================
   CARD (MODERN – CALM)
====================================================== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
    transition: box-shadow 0.25s ease;
}

.card:hover {
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.07);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--border-soft);
    padding: 16px 20px;
    font-weight: 600;
}

.card-title {
    font-size: 17px;
    letter-spacing: -0.01em;
}

.card-body {
    padding: 20px;
}

.card-footer {
    background: transparent;
    border-top: 1px solid var(--border-soft);
    padding: 16px 20px;
}

/* ======================================================
   TABLE (MODERN CLEAN – NO NOISE)
====================================================== */
.table {
    border-collapse: separate;
    border-spacing: 0 10px;
    margin-bottom: 0;
}

.table thead th {
    border: none;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    padding: 12px;
}

.table tbody tr {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.04);
    transition: box-shadow 0.2s ease;
}

.table tbody tr:hover {
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.table td {
    border: none;
    padding: 14px;
}

/* round table row edges */
.table tbody tr td:first-child {
    border-radius: 12px 0 0 12px;
}
.table tbody tr td:last-child {
    border-radius: 0 12px 12px 0;
}

/* ======================================================
   BUTTONS (SOFT + REFINED)
====================================================== */
.btn {
    border-radius: 10px;
    font-size: 13px;
    padding: 8px 16px;
    font-weight: 500;
    border: none;
    transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.btn:focus {
    outline: none;
    box-shadow: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

.btn-primary:hover {
    box-shadow: 0 6px 14px rgba(79, 70, 229, 0.28);
}

.btn-success {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

/* ======================================================
   FORMS (MODERN INPUTS – CALM)
====================================================== */
.form-group label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
}

.form-control {
    background: #f8fafc;
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
}

.form-control:focus {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.15);
}

/* ======================================================
   BADGES (PILL STYLE)
====================================================== */
.badge {
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success {
    background: rgba(34, 197, 94, 0.15);
    color: #16a34a;
}

.badge-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
}

/* ======================================================
   SIDEBAR (MODERN NAV – CALM)
====================================================== */
.main-sidebar {
    background: #020617;
}

.brand-link {
    background: #020617;
    border-bottom: 1px solid #1e293b;
}

.nav-sidebar .nav-link {
    color: #cbd5f5;
    border-radius: 9px;
    margin: 4px 10px;
    padding: 9px 14px;
    transition: background 0.2s ease;
}

.nav-sidebar .nav-link.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #ffffff;
}

.nav-sidebar .nav-link:hover {
    background: rgba(99, 102, 241, 0.15);
}

/* ======================================================
   PAGE HEADER
====================================================== */
.content-header h1 {
    font-size: 26px;
    font-weight: 700;
}

/* ======================================================
   ALERTS (SOFT)
====================================================== */
.alert {
    border-radius: 12px;
    border: none;
    background-color: rgba(99, 102, 241, 0.06);
}

/* ======================================================
   PAGINATION (SOFT)
====================================================== */
.pagination .page-link {
    border-radius: 10px;
    border: none;
    margin: 0 4px;
}

.pagination .active .page-link {
    background: var(--primary);
}


/* Main pagination layout */
nav[aria-label="Pagination Navigation"] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: nowrap;
}

/* Hide mobile pagination completely */
nav[aria-label="Pagination Navigation"] > .flex.justify-between.flex-1.sm\\:hidden {
    display: none !important;
}

/* Desktop pagination row */
nav[aria-label="Pagination Navigation"] > .hidden.sm\\:flex-1.sm\\:flex {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* Results text */
nav[aria-label="Pagination Navigation"] p {
    margin: 0;
    font-size: 0.875rem;
    color: #6b7280;
    white-space: nowrap;
}

/* Pagination buttons container */
nav[aria-label="Pagination Navigation"] .relative.z-0.inline-flex {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Buttons */
nav[aria-label="Pagination Navigation"] a,
nav[aria-label="Pagination Navigation"] span span {
    min-width: 36px;
    height: 36px;
    padding: 0 0;
    border-radius: 8px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 0.875rem;
    font-weight: 500;

    background: #ffffff;
    color: #374151;
    border: 1px solid #e5e7eb;

    transition: all 0.2s ease;
}

/* Hover */
nav[aria-label="Pagination Navigation"] a:hover {
    background: #f3f4f6;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* Active */
nav[aria-label="Pagination Navigation"] span[aria-current="page"] span {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    font-weight: 600;
}

/* Disabled */
nav[aria-label="Pagination Navigation"] span[aria-disabled="true"] span {
    background: #f9fafb;
    color: #9ca3af;
    cursor: not-allowed;
}

/* Remove Tailwind shadow */
nav[aria-label="Pagination Navigation"] .shadow-sm {
    box-shadow: none !important;
}
nav[aria-label="Pagination Navigation"] a:hover {
    background: #ecfeff;
    color: #0f766e;
    border-color: #99f6e4;
}

nav[aria-label="Pagination Navigation"] span[aria-current="page"] span {
    background: linear-gradient(135deg, #14b8a6, #0d9488);
    border-color: #0d9488;
    box-shadow: 0 6px 16px rgba(20,184,166,0.35);
}
