/* ============================================================
   Syt Internal Dashboard — Design System
   ============================================================ */

/* ---------- Root / Body ---------- */
body {
    background-color: #f8fafd;
    color: #1e293b;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* ---------- Navbar ---------- */
.navbar {
    background-color: #ffffff !important;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
}

.navbar-brand {
    color: #0f172a !important;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
}

.navbar-brand img {
    width: 38px;
    height: auto;
}

.navbar-nav .nav-link {
    color: #64748b !important;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.5rem 0.875rem;
    border-radius: 8px;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.navbar-nav .nav-link:hover {
    color: #0f172a !important;
    background-color: #f1f5f9;
}

.navbar-nav .nav-link.active {
    color: #3b82f6 !important;
    background-color: #eff6ff;
    font-weight: 600;
}

.navbar .dropdown-menu {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    padding: 0.375rem;
    margin-top: 0.5rem;
}

.navbar .dropdown-item {
    border-radius: 7px;
    padding: 0.5rem 0.875rem;
    font-size: 0.875rem;
    color: #475569;
    font-weight: 500;
}

.navbar .dropdown-item:hover {
    background-color: #f1f5f9;
    color: #0f172a;
}

/* ---------- Headings ---------- */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-weight: 600;
    color: #0f172a;
    letter-spacing: -0.01em;
}

/* ---------- Cards ---------- */
.card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.15s ease;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.card-body {
    padding: 1.25rem;
}

/* ---------- Buttons ---------- */
.btn {
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    transition: all 0.15s ease;
    letter-spacing: 0.01em;
}

.btn-primary {
    background-color: #3b82f6;
    border-color: #3b82f6;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #2563eb;
    border-color: #2563eb;
}

.btn-primary:focus,
.btn-primary:active {
    background-color: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.btn-success {
    background-color: #10b981;
    border-color: #10b981;
    color: #ffffff;
}

.btn-success:hover {
    background-color: #059669;
    border-color: #059669;
}

.btn-danger {
    background-color: #ef4444;
    border-color: #ef4444;
    color: #ffffff;
}

.btn-danger:hover {
    background-color: #dc2626;
    border-color: #dc2626;
}

.btn-outline-primary {
    color: #3b82f6;
    border-color: #3b82f6;
}

.btn-outline-primary:hover {
    background-color: #3b82f6;
    border-color: #3b82f6;
    color: #ffffff;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
    border-radius: 8px;
}

.btn-block {
    width: 100%;
}

/* ---------- Tables ---------- */
.table {
    border-color: #e2e8f0;
    font-size: 0.875rem;
    margin-bottom: 0;
}

.table thead th {
    background-color: #f8fafc;
    color: #64748b;
    font-weight: 600;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 2px solid #e2e8f0;
    padding: 0.75rem 1rem;
    white-space: nowrap;
}

.table tbody td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
}

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

.table tbody tr:nth-child(even) {
    background-color: #fafbfc;
}

.table tbody tr:nth-child(even):hover {
    background-color: #f1f5f9;
}

.table-responsive {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

/* ---------- Forms & Inputs ---------- */
.form-control,
.form-select {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: #1e293b;
    background-color: #ffffff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

.form-control::placeholder {
    color: #94a3b8;
}

.form-label {
    font-weight: 500;
    font-size: 0.8125rem;
    color: #475569;
    margin-bottom: 0.375rem;
}

.input-group-text {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    font-weight: 500;
    font-size: 0.8125rem;
    border-radius: 8px 0 0 8px;
}

.input-group .form-control {
    border-radius: 0 8px 8px 0;
}

/* ---------- Badges ---------- */
.badge {
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.75rem;
    padding: 0.25em 0.6em;
}

.bg-success {
    background-color: #10b981 !important;
}

.bg-warning {
    background-color: #f59e0b !important;
}

.bg-danger {
    background-color: #ef4444 !important;
}

/* ---------- Alerts ---------- */
.alert {
    border-radius: 10px;
    border: 1px solid transparent;
    font-size: 0.875rem;
    padding: 0.875rem 1rem;
}

.alert-success {
    background-color: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}

.alert-danger {
    background-color: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.alert-warning {
    background-color: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.alert-info {
    background-color: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
}

/* ---------- Nav Tabs (sub-navigation) ---------- */
.nav-underline {
    border-bottom-color: #e2e8f0;
}

.nav-underline .nav-link {
    color: #64748b;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.625rem 1rem;
    border-radius: 0;
}

.nav-underline .nav-link:hover {
    color: #0f172a;
}

.nav-underline .nav-link.active {
    color: #3b82f6;
    font-weight: 600;
    border-bottom-color: #3b82f6;
}

/* ---------- Avatar ---------- */
.avatar-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #3b82f6;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.25rem;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

.avatar-circle-lg {
    width: 72px;
    height: 72px;
    font-size: 1.5rem;
}

/* ---------- Misc ---------- */
hr {
    border-color: #e2e8f0;
    opacity: 1;
}

.text-muted {
    color: #94a3b8 !important;
}

.text-primary {
    color: #3b82f6 !important;
}

.text-danger {
    color: #ef4444 !important;
}

a {
    color: #3b82f6;
    text-decoration: none;
}

a:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* ---------- Toast / fixed notifications ---------- */
.toast-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 350px;
    text-align: center;
    z-index: 9999;
}

/* ---------- Shadow utility ---------- */
.shadow-sm {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

.shadow {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .navbar-nav .nav-link {
        padding: 0.5rem 0.75rem;
    }

    .table thead th,
    .table tbody td {
        padding: 0.5rem 0.75rem;
    }
}
