/**
 * Custom Styles - Elegant Minimalist Design
 * Sistem Informasi Angkot
 */

/* ============================================
   Variables & Theme Colors
   ============================================ */
:root {
    /* Original Colors */
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --angkot-orange: #ff6b35;
    --angkot-blue: #004e89;

    /* New Sidebar Layout Colors */
    --sidebar-bg: #1A252F;
    --sidebar-hover: #2C3E50;
    --header-bg: #FFFFFF;
    --header-border: #E5E7EB;
    --content-bg: #F9FAFB;
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --accent-blue: #3498DB;

    /* Sizing */
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 70px;
    --header-height: 60px;
    --transition-speed: 0.3s;
}

/* ============================================
   Global Styles
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--content-bg);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* ============================================
   Top Header Styles
   ============================================ */
.top-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: var(--sidebar-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-brand {
    font-size: 1rem;
    font-weight: 600;
    color: white;
}

.header-page-title {
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
}

.sidebar-toggle-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background-color var(--transition-speed);
}

.sidebar-toggle-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-user-dropdown {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all var(--transition-speed);
    font-size: 0.9rem;
    color: white;
}

.btn-user-dropdown:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-blue);
}

.btn-user-dropdown i.bi-person-circle {
    font-size: 1.5rem;
    color: var(--accent-blue);
}

.btn-user-dropdown .user-name {
    font-weight: 500;
    color: white;
}

.btn-user-dropdown .badge-role {
    background-color: var(--accent-blue);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

.user-info-dropdown {
    padding: 0.5rem 0;
}

.user-info-dropdown strong {
    display: block;
    color: var(--text-primary);
}

/* ============================================
   Sidebar Styles
   ============================================ */
.sidebar {
    position: fixed;
    left: 0;
    top: var(--header-height);
    width: var(--sidebar-width);
    height: calc(100vh - var(--header-height));
    background-color: var(--sidebar-bg);
    color: white;
    overflow-y: auto;
    overflow-x: hidden;
    transition: transform var(--transition-speed);
    z-index: 999;
    display: flex;
    flex-direction: column;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.sidebar-header {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
}

.sidebar-brand-logo {
    height: 28px;
    width: auto;
    filter: drop-shadow(0 1px 3px rgba(255, 107, 53, 0.3));
    transition: all 0.3s ease;
}

.sidebar-brand:hover .sidebar-brand-logo {
    transform: scale(1.08);
    filter: drop-shadow(0 2px 6px rgba(255, 107, 53, 0.5));
}

.sidebar-brand-text {
    color: white;
    letter-spacing: 0.5px;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
}

.sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-section-title {
    padding: 1rem 1.5rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.5);
}

.sidebar-item {
    margin: 0.25rem 0.75rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-radius: 8px;
    transition: all var(--transition-speed);
    position: relative;
}

.sidebar-link i {
    font-size: 1.25rem;
    width: 1.25rem;
    flex-shrink: 0;
}

.sidebar-link span {
    flex: 1;
}

.sidebar-link:hover {
    background-color: var(--sidebar-hover);
    color: white;
}

.sidebar-item.active>.sidebar-link {
    background-color: var(--accent-blue);
    color: white;
}

/* Submenu Styles */
.sidebar-link.collapsed .submenu-icon,
.sidebar-link[aria-expanded="false"] .submenu-icon {
    transform: rotate(0deg);
}

.sidebar-link[aria-expanded="true"] .submenu-icon {
    transform: rotate(180deg);
}

.submenu-icon {
    margin-left: auto;
    font-size: 0.9rem;
    transition: transform var(--transition-speed);
}

.sidebar-submenu {
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
}

.sidebar-submenu li {
    margin: 0.25rem 0;
}

.sidebar-submenu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1rem 0.6rem 3rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    border-radius: 8px;
    transition: all var(--transition-speed);
    font-size: 0.9rem;
}

.sidebar-submenu a i {
    font-size: 1rem;
}

.sidebar-submenu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.sidebar-user-info i {
    font-size: 2rem;
    color: var(--accent-blue);
}

.sidebar-user-details {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.sidebar-user-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
}

.sidebar-user-role {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Sidebar Overlay for Mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

/* ============================================
   Main Content Layout
   ============================================ */
.main-content {
    margin-left: var(--sidebar-width);
    margin-top: var(--header-height);
    padding: 2rem;
    min-height: calc(100vh - var(--header-height));
    transition: margin-left var(--transition-speed);
}

/* ============================================
   Cards
   ============================================ */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: white;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.card-header {
    background-color: var(--primary-color);
    color: white;
    border-radius: 12px 12px 0 0 !important;
    font-weight: 600;
    padding: 1rem 1.5rem;
}

.card-header i {
    margin-right: 0.5rem;
}

/* ============================================
   Stats Cards (Dashboard)
   ============================================ */
.stat-card {
    border-left: 4px solid var(--primary-color);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.stat-card.stat-success {
    border-left-color: var(--success-color);
}

.stat-card.stat-warning {
    border-left-color: var(--warning-color);
}

.stat-card.stat-info {
    border-left-color: var(--info-color);
}

.stat-card.stat-danger {
    border-left-color: var(--danger-color);
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--dark-color);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-icon {
    font-size: 3rem;
    opacity: 0.2;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

/* ============================================
   Tables
   ============================================ */
.table {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
}

.table thead th {
    background-color: var(--angkot-blue);
    color: white;
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.table tbody tr {
    transition: background-color 0.2s ease;
}

.table tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

.dataTables_wrapper .dataTables_filter input {
    border-radius: 20px;
    padding: 0.5rem 1rem;
    border: 1px solid #dee2e6;
}

.dataTables_wrapper .dataTables_length select {
    border-radius: 8px;
    padding: 0.25rem 0.5rem;
    border: 1px solid #dee2e6;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    border-radius: 8px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--angkot-blue);
    border-color: var(--angkot-blue);
}

.btn-primary:hover {
    background-color: #003d6b;
    border-color: #003d6b;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 78, 137, 0.3);
}

.btn-success:hover,
.btn-danger:hover,
.btn-warning:hover,
.btn-info:hover {
    transform: translateY(-1px);
}

.btn-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
}

/* ============================================
   Badges
   ============================================ */
.badge {
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.8rem;
}

/* ============================================
   Forms
   ============================================ */
.form-control,
.form-select {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 0.6rem 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--angkot-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 78, 137, 0.15);
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

/* ============================================
   Login Page
   ============================================ */
/* ============================================
   Login Page (High-Fidelity One Of Us)
   ============================================ */
.login-page-body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    background-image: url('https://images.unsplash.com/photo-1544620347-c4fd4a3d5957?q=80&w=1920&auto=format&fit=crop');
    /* Bus/Transport theme */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    position: relative;
    overflow: hidden;
}

.login-page-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 110, 253, 0.4);
    /* Overlay color */
    backdrop-filter: blur(5px);
    z-index: 1;
}

.login-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1000px;
    padding: 2rem;
}

.login-floating-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    min-height: 600px;
    animation: fadeInScale 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.login-left-side {
    background: rgba(13, 110, 253, 0.9);
    background: linear-gradient(135deg, #0d6efd 0%, #004e89 100%);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

/* Abstract shapes for left side */
.login-left-side::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.login-left-side::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.login-illustration {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.lottie-container {
    width: 100%;
    max-width: 350px;
    margin: 0 auto 1rem;
}

.login-logo {
    height: 80px;
    width: auto;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
    animation: slideInUp 0.8s 0.15s backwards;
}

.login-illustration h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: slideInUp 0.8s 0.2s backwards;
}

.login-illustration p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 80%;
    margin: 0 auto;
    line-height: 1.6;
    animation: slideInUp 0.8s 0.3s backwards;
}

.login-right-side {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 3rem;
    background: transparent;
}

.login-form-container {
    width: 100%;
    max-width: 400px;
}

.login-title-section {
    margin-bottom: 2rem;
    animation: slideInUp 0.6s 0.4s backwards;
}

.login-title-section h3 {
    font-weight: 800;
    color: var(--dark-color);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.login-input-group {
    margin-bottom: 1.5rem;
    position: relative;
    animation: slideInUp 0.6s 0.5s backwards;
}

.login-input-group:nth-child(2) {
    animation-delay: 0.6s;
}

.login-input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-left: 1rem;
}

.login-input-group .input-wrapper {
    position: relative;
}

.login-input-group .input-wrapper i {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    transition: color 0.3s;
    font-size: 1.2rem;
}

.login-input-group input:focus+i {
    color: var(--angkot-blue);
}

.login-input {
    width: 100% !important;
    padding: 1rem 1rem 1rem 3rem !important;
    border-radius: 50px !important;
    border: 2px solid rgba(255, 255, 255, 0.5);
    /* Transparent border */
    background-color: rgba(255, 255, 255, 0.5);
    /* Semi-transparent white */
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    font-size: 1rem;
    color: var(--dark-color);
}

.login-input:focus {
    background-color: rgba(255, 255, 255, 0.9);
    border-color: var(--angkot-blue);
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.15);
    transform: translateY(-2px);
}

.btn-login {
    width: 100%;
    padding: 1rem;
    border-radius: 50px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-top: 1.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: linear-gradient(135deg, var(--angkot-blue) 0%, var(--primary-color) 100%);
    border: none;
    box-shadow: 0 10px 20px -10px rgba(13, 110, 253, 0.5);
    animation: slideInUp 0.6s 0.7s backwards;
}

.btn-login:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 30px -10px rgba(13, 110, 253, 0.6);
}

.login-footer {
    text-align: center;
    margin-top: 2rem;
    color: var(--secondary-color);
    font-size: 0.9rem;
    animation: fadeIn 0.8s 0.9s backwards;
}

/* Animations */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (max-width: 991px) {
    .login-wrapper {
        padding: 1rem;
    }

    .login-floating-card {
        min-height: auto;
        flex-direction: column;
    }

    .login-left-side {
        padding: 2rem 1.5rem;
        min-height: 220px;
    }

    .lottie-container {
        max-width: 180px;
    }

    .login-illustration h1 {
        font-size: 1.8rem;
    }

    .login-illustration p {
        font-size: 0.95rem;
        max-width: 90%;
    }

    .login-right-side {
        padding: 2rem 1.5rem;
    }

    .login-form-container {
        max-width: 100%;
    }

    .login-title-section h3 {
        font-size: 1.6rem;
    }
}

/* Mobile Phones */
@media (max-width: 576px) {
    .login-page-body {
        align-items: center;
        padding: 1rem 0.75rem;
        min-height: 100vh;
    }

    .login-wrapper {
        padding: 0;
        max-width: 100%;
        width: 100%;
    }

    .login-floating-card {
        border-radius: 24px;
        min-height: auto;
        box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.3);
        flex-direction: column;
        width: 100%;
    }

    .login-left-side {
        padding: 1.5rem 1rem 1rem;
        min-height: auto;
        flex: 0 0 auto;
        width: 100%;
        border-radius: 24px 24px 0 0;
    }

    .lottie-container {
        max-width: 100px;
        margin-bottom: 0.5rem;
    }

    .login-illustration h1 {
        font-size: 1.4rem;
        margin-bottom: 0.25rem;
    }

    .login-illustration p {
        font-size: 0.8rem;
        max-width: 100%;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        line-clamp: 2;
        overflow: hidden;
        margin-bottom: 0;
    }

    .login-right-side {
        padding: 1.5rem 1.25rem 2rem;
        flex: 1 1 auto;
        width: 100%;
        align-items: flex-start;
    }

    .login-form-container {
        max-width: 100%;
        width: 100%;
        padding: 0;
    }

    .login-title-section {
        margin-bottom: 1.25rem;
    }

    .login-title-section h3 {
        font-size: 1.3rem;
    }

    .login-title-section p {
        font-size: 0.85rem;
    }

    .login-input-group {
        margin-bottom: 1rem;
    }

    .login-input-group label {
        margin-left: 0.75rem;
        font-size: 0.8rem;
    }

    .login-input {
        padding: 0.85rem 1rem 0.85rem 2.5rem !important;
        font-size: 16px;
        /* Prevents iOS zoom on focus */
    }

    .login-input-group .input-wrapper i {
        left: 0.9rem;
        font-size: 1rem;
    }

    .btn-login {
        padding: 0.85rem;
        font-size: 0.95rem;
        margin-top: 0.75rem;
    }
}

/* ============================================
   Dashboard Welcome Section
   ============================================ */
.welcome-section {
    background: linear-gradient(135deg, var(--angkot-blue) 0%, var(--primary-color) 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.welcome-section h2 {
    margin-bottom: 0.5rem;
}

.welcome-section p {
    margin-bottom: 0;
    opacity: 0.9;
}

/* ============================================
   Quick Actions
   ============================================ */
.quick-action {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.quick-action:hover {
    border-color: var(--angkot-orange);
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(255, 107, 53, 0.2);
    color: var(--angkot-orange);
}

.quick-action i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--angkot-blue);
}

.quick-action:hover i {
    color: var(--angkot-orange);
}

.quick-action h5 {
    margin-bottom: 0;
    font-weight: 600;
}

/* ============================================
   Alert Customization
   ============================================ */
.alert {
    border-radius: 10px;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.alert i {
    margin-right: 0.5rem;
}

/* ============================================
   Loading Spinner
   ============================================ */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* ============================================
   Mobile Responsive
   ============================================ */
@media (max-width: 991px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .sidebar-overlay.active {
        display: block;
    }

    .main-content {
        margin-left: 0;
    }

    .header-page-title {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .stat-value {
        font-size: 1.5rem;
    }

    .stat-icon {
        font-size: 2rem;
    }

    .quick-action i {
        font-size: 2rem;
    }

    .welcome-section {
        padding: 1.5rem;
    }

    .card-body {
        padding: 1rem;
    }

    .table {
        font-size: 0.9rem;
    }

    .btn-sm {
        padding: 0.2rem 0.5rem;
        font-size: 0.8rem;
    }

    .main-content {
        padding: 1rem;
    }

    .btn-user-dropdown .user-name {
        display: none;
    }
}

/* ============================================
   Mobile-First Form (Setoran)
   ============================================ */
@media (max-width: 576px) {

    .mobile-form .form-control,
    .mobile-form .form-select {
        font-size: 16px;
        /* Prevent zoom on iOS */
        padding: 0.75rem;
    }

    .mobile-form .btn {
        padding: 0.75rem 1.5rem;
        font-size: 1.1rem;
        width: 100%;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {

    .sidebar,
    .top-header,
    .btn,
    .dataTables_wrapper .dataTables_filter,
    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_info,
    .dataTables_wrapper .dataTables_paginate,
    footer {
        display: none !important;
    }

    .main-content {
        margin-left: 0;
        margin-top: 0;
    }

    .card {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }

    body {
        background-color: white;
    }
}

/* ============================================
   Utility Classes
   ============================================ */
.text-angkot-orange {
    color: var(--angkot-orange) !important;
}

.text-angkot-blue {
    color: var(--angkot-blue) !important;
}

.bg-angkot-orange {
    background-color: var(--angkot-orange) !important;
}

.bg-angkot-blue {
    background-color: var(--angkot-blue) !important;
}

.cursor-pointer {
    cursor: pointer;
}

.shadow-sm-hover:hover {
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075) !important;
}

/* ============================================
   DataTables Customization Fixes
   ============================================ */
.dataTables_wrapper .dataTables_length select {
    padding-right: 2rem !important;
    padding-left: 0.75rem !important;
    background-position: right 0.5rem center;
    min-width: 80px;
    display: inline-block;
    margin: 0 0.5rem;
}

.dataTables_wrapper .dataTables_length label {
    display: flex;
    align-items: center;
    font-weight: normal;
    gap: 0.5rem;
}

/* ==================== LANDING PAGE STYLES ==================== */
:root {
    /* Dark Blue Theme - Biru Dongker */
    --primary-dark: #0a1628;
    --primary-blue: #1e3a5f;
    --accent-blue: #3b82f6;
    --accent-cyan: #06b6d4;
    --accent-orange: #f97316;
    --text-light: #f1f5f9;
    --text-muted: #94a3b8;
    --glass-bg: rgba(30, 58, 95, 0.3);
    --glass-border: rgba(255, 255, 255, 0.1);
}

.landing-page * {
    box-sizing: border-box;
}

.landing-page html {
    scroll-behavior: smooth;
}

.landing-page body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--primary-dark);
    color: var(--text-light);
    overflow-x: hidden;
}

/* ==================== NAVBAR ==================== */
.navbar-custom {
    background: transparent;
    padding: 1rem 0;
    transition: all 0.4s ease;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar-custom.scrolled {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    padding: 0.5rem 0;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.navbar-brand-logo {
    height: 45px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(6, 182, 212, 0.3));
    transition: all 0.3s ease;
}

.navbar-brand:hover .navbar-brand-logo {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 12px rgba(6, 182, 212, 0.5));
}

.navbar-brand-text {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-custom .nav-link {
    color: var(--text-light) !important;
    font-weight: 500;
    padding: 0.5rem 1.2rem !important;
    margin: 0 0.25rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-custom .nav-link:hover {
    color: var(--accent-cyan) !important;
    background: var(--glass-bg);
}

.navbar-custom .nav-link.active {
    color: var(--accent-cyan) !important;
}

.btn-nav-login {
    background: linear-gradient(135deg, var(--accent-orange), #fb923c);
    color: white !important;
    padding: 0.6rem 1.5rem !important;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.btn-nav-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.4);
}

/* ==================== HERO SECTION ==================== */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 50%, #0f172a 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

/* Animated Background Elements */
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 20% 80%, rgba(6, 182, 212, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(249, 115, 22, 0.1) 0%, transparent 40%);
    animation: backgroundPulse 15s ease-in-out infinite;
}

@keyframes backgroundPulse {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
    }

    50% {
        transform: scale(1.1) rotate(5deg);
    }
}

/* Floating Particles */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-cyan);
    border-radius: 50%;
    opacity: 0.5;
    animation: float 20s infinite;
}

.particle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 25s;
}

.particle:nth-child(2) {
    left: 20%;
    animation-delay: 2s;
    animation-duration: 20s;
}

.particle:nth-child(3) {
    left: 30%;
    animation-delay: 4s;
    animation-duration: 28s;
}

.particle:nth-child(4) {
    left: 40%;
    animation-delay: 6s;
    animation-duration: 22s;
}

.particle:nth-child(5) {
    left: 50%;
    animation-delay: 8s;
    animation-duration: 26s;
}

.particle:nth-child(6) {
    left: 60%;
    animation-delay: 10s;
    animation-duration: 24s;
}

.particle:nth-child(7) {
    left: 70%;
    animation-delay: 12s;
    animation-duration: 21s;
}

.particle:nth-child(8) {
    left: 80%;
    animation-delay: 14s;
    animation-duration: 27s;
}

.particle:nth-child(9) {
    left: 90%;
    animation-delay: 16s;
    animation-duration: 23s;
}

@keyframes float {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 0.5;
    }

    90% {
        opacity: 0.5;
    }

    100% {
        transform: translateY(-100vh) scale(1);
        opacity: 0;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--accent-cyan);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-light) 0%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary-custom {
    background: linear-gradient(135deg, var(--accent-orange), #fb923c);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(249, 115, 22, 0.4);
    color: white;
}

.btn-secondary-custom {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    color: var(--text-light);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-secondary-custom:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: var(--accent-blue);
    color: var(--accent-cyan);
    transform: translateY(-3px);
}

.hero-lottie {
    position: relative;
    z-index: 2;
}

.lottie-glow {
    filter: drop-shadow(0 0 40px rgba(6, 182, 212, 0.3));
}

/* ==================== HERO IMAGE ANIMATIONS ==================== */
.hero-image-wrapper {
    position: relative;
    z-index: 2;
    perspective: 1000px;
}

.hero-image-container {
    position: relative;
    display: inline-block;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

.hero-image-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.4) 0%, rgba(59, 130, 246, 0.2) 40%, transparent 70%);
    filter: blur(40px);
    animation: pulseGlow 3s ease-in-out infinite;
    z-index: -1;
}

@keyframes pulseGlow {

    0%,
    100% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.hero-image-main {
    max-width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: contain;
    animation: floatImage 4s ease-in-out infinite;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
    transition: transform 0.3s ease;
}

@keyframes floatImage {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-15px) rotate(1deg);
    }

    50% {
        transform: translateY(-25px) rotate(0deg);
    }

    75% {
        transform: translateY(-15px) rotate(-1deg);
    }
}

.hero-image-container:hover .hero-image-main {
    animation-play-state: paused;
    transform: scale(1.05);
}

/* Floating Decorative Elements */
.hero-float-element {
    position: absolute;
    width: 50px;
    height: 50px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--accent-cyan);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.float-1 {
    top: 10%;
    right: 5%;
    animation: floatElement1 5s ease-in-out infinite;
}

.float-2 {
    bottom: 20%;
    left: 0%;
    animation: floatElement2 6s ease-in-out infinite;
    animation-delay: 1s;
}

.float-3 {
    top: 50%;
    right: 0%;
    animation: floatElement3 4s ease-in-out infinite;
    animation-delay: 2s;
}

@keyframes floatElement1 {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

@keyframes floatElement2 {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(-10deg);
    }
}

@keyframes floatElement3 {

    0%,
    100% {
        transform: translateX(0) rotate(0deg);
    }

    50% {
        transform: translateX(-10px) rotate(5deg);
    }
}

/* ==================== FEATURES SECTION ==================== */
.features-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--primary-blue) 0%, var(--primary-dark) 100%);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    height: 100%;
    transition: all 0.4s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(59, 130, 246, 0.15);
    border-color: var(--accent-blue);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.feature-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==================== MITRA SECTION ==================== */
.mitra-section {
    padding: 6rem 0;
    background: var(--primary-dark);
    position: relative;
}

.mitra-logo-wrapper {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    height: 180px;
    margin: 0 auto;
}

.mitra-logo-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.2);
    border-color: var(--accent-cyan);
}

.mitra-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
    border-radius: 10px;
}

.mitra-logo-wrapper:hover .mitra-logo {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
    transform: scale(1.05);
}

/* ==================== ABOUT SECTION ==================== */
.about-section {
    padding: 6rem 0;
    background: var(--primary-dark);
    position: relative;
}

.about-content {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.about-content::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.about-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-cyan);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.about-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
}

.about-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.about-list li:hover {
    background: rgba(59, 130, 246, 0.1);
    transform: translateX(10px);
}

.about-list li i {
    color: var(--accent-cyan);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.about-list li strong {
    color: var(--text-light);
    display: block;
    margin-bottom: 0.25rem;
}

.about-list li span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==================== FOOTER ==================== */
.footer {
    background: linear-gradient(180deg, var(--primary-dark) 0%, #050a15 100%);
    padding: 3rem 0 1.5rem;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    text-align: center;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-brand span {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-logo {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(6, 182, 212, 0.4));
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(10, 22, 40, 0.98);
        backdrop-filter: blur(20px);
        padding: 1rem;
        border-radius: 15px;
        margin-top: 1rem;
        border: 1px solid var(--glass-border);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-primary-custom,
    .btn-secondary-custom {
        width: 100%;
        justify-content: center;
    }
}