:root {
    --primary: #1e40af; /* Deep Royal Blue */
    --primary-dark: #1e3a8a;
    --primary-light: #3b82f6;
    --bg: #f8fafc; /* Slate 50 */
    --surface: #ffffff;
    --surface-soft: #ffffff;
    --text: #0f172a; /* Slate 900 */
    --muted: #64748b; /* Slate 500 */
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --card-border: 1px solid #e2e8f0;
}

.login-bg {
    background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.15), transparent),
                radial-gradient(circle at bottom left, rgba(30, 64, 175, 0.1), transparent),
                #f8fafc;
    min-height: 100vh;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.14), transparent 35%),
                radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.12), transparent 25%),
                var(--bg);
    color: var(--text);
}

.navbar {
    background: #0f172a !important; /* Dark Navy for contrast */
    border-bottom: 1px solid rgba(255,255,255,0.1);
    box-shadow: none;
}

.navbar-brand {
    font-weight: 800;
    letter-spacing: 0.01em;
    color: #ffffff !important;
}

.navbar-brand img {
    border-radius: 0.75rem;
    object-fit: cover;
}

.navbar-nav .nav-link {
    color: rgba(255,255,255,0.88) !important;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
    color: #ffffff !important;
}

.navbar-nav .nav-link {
    color: rgba(255,255,255,0.92) !important;
    padding: 0.55rem 0.9rem;
    margin: 0 0.12rem;
    border-radius: 0.75rem;
    transition: background 0.25s ease, color 0.25s ease;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
    background: rgba(255,255,255,0.18);
    color: #ffffff !important;
}

.navbar {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
    padding: 0.85rem 1.25rem;
}

.navbar-toggler {
    border-color: rgba(255,255,255,0.35);
}

.navbar-toggler-icon {
    filter: invert(1);
}

.navbar-text {
    color: rgba(255,255,255,0.75);
}

.card,
.table,
.form-control,
.btn,
.modal-content {
    border-radius: 0.75rem !important;
}

.card {
    border: var(--card-border);
    background: var(--surface-soft);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05);
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.18);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.form-control {
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.form-control:focus {
    background: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    outline: none;
}

.input-group-text {
    background-color: #f8fafc;
    border-color: #e2e8f0;
    color: #94a3b8;
    border-top-left-radius: 0.75rem !important;
    border-bottom-left-radius: 0.75rem !important;
}

.input-group .form-control {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-left: none;
}

/* Password Toggle Styling */
.input-group #password {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

#togglePassword {
    background-color: #f8fafc;
    border-color: #e2e8f0;
    color: #64748b;
    border-top-right-radius: 0.75rem !important;
    border-bottom-right-radius: 0.75rem !important;
}

label {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.table {
    --bs-table-hover-bg: #f8fafc;
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.table thead th {
    background: #f8fafc;
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1rem 1.25rem;
    border-top: none;
    border-bottom: 1px solid #e2e8f0;
}

.table tbody td {
    padding: 1.1rem 1.25rem;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.table tbody tr {
    transition: background-color 0.2s ease;
}

/* Modern Badge Styling (Soft UI) */
.badge {
    padding: 0.5em 0.85em;
    font-weight: 600;
    border-radius: 0.5rem;
}

.badge.bg-success { background-color: #dcfce7 !important; color: #15803d !important; }
.badge.bg-warning { background-color: #fef9c3 !important; color: #a16207 !important; }
.badge.bg-danger { background-color: #fee2e2 !important; color: #b91c1c !important; }
.badge.bg-primary { background-color: #e0e7ff !important; color: #4338ca !important; }

.hero-card {
    border: none;
    border-radius: 1.75rem;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
}

.icon-box {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    background: rgba(37, 99, 235, 0.12);
    color: var(--primary);
}

.section-title {
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.login-frame {
    border-radius: 1.75rem;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.login-panel {
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.95), rgba(59, 130, 246, 0.95));
    color: #ffffff;
}

.login-panel h2 {
    font-weight: 700;
    line-height: 1.1;
}

.login-panel p {
    opacity: 0.88;
}

.login-panel .login-image {
    width: 88px;
    height: 88px;
    border-radius: 1.25rem;
    background: rgba(255,255,255,0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.login-panel .login-image img {
    width: 48px;
}

.login-panel .login-note {
    font-size: 0.95rem;
    opacity: 0.82;
}

.footer-note {
    color: var(--muted);
    font-size: 0.92rem;
}

.dashboard-layout {
    min-height: calc(100vh - 72px);
}

.sidebar-panel {
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.95);
    border-radius: 1.5rem;
    box-shadow: var(--shadow);
}

.sidebar-panel .nav-link {
    color: var(--text);
    font-weight: 500;
}

.sidebar-panel .nav-link.active,
.sidebar-panel .nav-link:hover {
    color: var(--primary);
}

.kpi-card {
    border: none;
    border-radius: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(145deg, rgba(255,255,255,0.95), rgba(255,255,255,0.82));
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.kpi-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 60px rgba(37, 99, 235, 0.18);
}

.kpi-card .metric-value {
    font-size: 2rem;
    font-weight: 700;
}

.kpi-card .metric-subtitle {
    color: var(--muted);
}

.fade-in-up {
    animation: fadeInUp 0.8s ease both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Carousel Custom Styling */
.custom-indicators {
    bottom: -35px;
    margin-bottom: 0;
}

.custom-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #2563eb;
}

.carousel-item {
    min-height: 280px;
}

@media (max-width: 991.98px) {
    .carousel-item {
        min-height: auto;
        padding-bottom: 2rem;
    }
    .login-info-section {
        text-align: center;
    }
    .login-info-section ul {
        display: inline-block;
        text-align: left;
    }
}

.login-info-section {
    position: relative;
}

.login-info-section::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(calc(-50% + var(--parallax-x, 0px)), calc(-50% + var(--parallax-y, 0px)));
    transition: transform 0.15s ease-out;
    width: 100%;
    height: 100%;
    background-image: url('https://illustrations.popsy.co/amber/it-support.svg'); /* Ilustrasi IT modern */
    background-repeat: no-repeat;
    background-position: center;
    background-size: 80%;
    opacity: 0.06; /* Sangat transparan agar teks tetap kontras */
    z-index: -1;
}

.pulse {
    animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.bg-primary-soft {
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
}

@media (max-width: 767px) {
    .login-panel {
        text-align: center;
    }
    .dashboard-layout {
        padding: 1rem 0;
    }
}

.footer {
    background: #ffffff;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}
.footer a:hover {
    color: var(--primary-dark) !important;
}

.hover-opacity-100:hover {
    opacity: 1 !important;
}

.dropdown-item:active {
    background-color: var(--primary-soft);
}

/* Password Strength Meter */
.password-strength-meter {
    height: 4px;
    background-color: #f1f5f9;
    border-radius: 10px;
    margin-top: 10px;
    overflow: hidden;
    display: block;
}

.password-strength-bar {
    height: 100%;
    width: 0;
    border-radius: 10px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Modern Table Tweaks */
.extra-small {
    font-size: 0.72rem;
}

.ls-wide {
    letter-spacing: 0.05em;
}

.icon-box-sm {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    background: #f1f5f9;
    color: var(--primary);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.btn-action-ghost {
    color: #64748b;
    background: transparent;
    border: none;
    padding: 0.4rem 0.6rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.btn-action-ghost:hover {
    background: #f1f5f9;
    color: var(--primary);
}

.table-modern thead th {
    background: transparent !important;
    border-top: none !important;
    border-bottom: 1px solid #e2e8f0 !important;
    padding-bottom: 0.75rem !important;
}

.clickable-row {
    cursor: pointer;
}
.clickable-row:hover {
    background-color: rgba(30, 64, 175, 0.03) !important;
}
