/* ============================================
   DATA AUTO - Custom Styles
   ============================================ */

/* Gotham Font Family */
@font-face {
    font-family: 'Gotham';
    src: url('../fonts/Gotham/Gotham-Book.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Gotham';
    src: url('../fonts/Gotham/Gotham-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Gotham';
    src: url('../fonts/Gotham/Gotham-Black.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
}

/* ============================================
   CSS Variables
   ============================================ */
:root {
    --primary-color: #162d50;
    --primary-light: #1e3a5f;
    --primary-dark: #0f1f38;
    --accent-color: #5a9bd4;
    --sidebar-bg: #162d50;
    --sidebar-hover: #1e3a5f;
    --font-family: 'Gotham', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Force Gotham font everywhere */
body,
html,
* {
    font-family: var(--font-family) !important;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
p, span, div, a, button, input, select, textarea, label,
.form-control, .btn, .nav-link, .dropdown-item, .badge,
.card-title, .card-text, .table, .modal-title, .alert,
.menu-title, .sidebar .nav-link, .sidebar .menu-title,
.dataTables_wrapper, .dataTables_info, .dataTables_paginate,
.dataTables_length, .dataTables_filter, table.dataTable,
.page-link, .pagination, .breadcrumb, .breadcrumb-item {
    font-family: var(--font-family) !important;
}

/* ============================================
   Sidebar Styles
   ============================================ */
.sidebar {
    box-shadow: 0 -5px 25px rgba(22, 45, 80, 0.15);
}

.sidebar .nav .nav-item .nav-link {
    font-family: var(--font-family) !important;
}

.sidebar .nav .nav-item .nav-link .menu-icon {
    color: var(--primary-color) !important;
}

.sidebar .nav .nav-item.active > .nav-link {
    color: var(--primary-color) !important;
}

.sidebar .nav .nav-item.active > .nav-link .menu-icon {
    color: var(--primary-color) !important;
}

.sidebar .nav .nav-item.active > .nav-link .menu-title {
    color: var(--primary-color) !important;
    font-weight: 600;
}

/* ============================================
   Navbar/Topbar Styles
   ============================================ */
.navbar .navbar-brand-wrapper {
    background: #fff !important;
    display: flex;
    align-items: center;
}

.navbar .navbar-brand {
    display: flex;
    align-items: center;
    height: 100%;
}

.navbar .navbar-menu-wrapper {
    background: #fff !important;
}

.navbar .navbar-toggler {
    color: var(--primary-color) !important;
}

.navbar .nav-profile-text p {
    color: var(--primary-color) !important;
    font-family: var(--font-family) !important;
    font-weight: 600;
}

.navbar .dropdown-menu {
    border: none;
    box-shadow: 0 5px 25px rgba(22, 45, 80, 0.15);
    border-radius: 10px;
}

.navbar .dropdown-item {
    font-size: 13px;
    font-family: var(--font-family) !important;
}

.navbar .dropdown-item:hover {
    background: rgba(22, 45, 80, 0.05);
}

/* ============================================
   Content Area
   ============================================ */
.content-wrapper {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%) !important;
    min-height: calc(100vh - 120px);
}

/* ============================================
   Cards
   ============================================ */
.card {
    border: none !important;
    border-radius: 15px !important;
    box-shadow: 0 5px 20px rgba(22, 45, 80, 0.08) !important;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 30px rgba(22, 45, 80, 0.12) !important;
}

.card-title {
    color: var(--primary-color) !important;
    font-family: var(--font-family) !important;
    font-weight: 700;
}

/* ============================================
   Buttons
   ============================================ */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%) !important;
    border: none !important;
    font-family: var(--font-family) !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(22, 45, 80, 0.3);
}

.btn-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%) !important;
}

.btn-gradient-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(22, 45, 80, 0.3);
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%) !important;
}

.btn-danger {
    --bs-btn-bg: #dc3545 !important;
    --bs-btn-border-color: #dc3545 !important;
    --bs-btn-hover-bg: #bb2d3b !important;
    --bs-btn-hover-border-color: #b02a37 !important;
    --bs-btn-active-bg: #b02a37 !important;
    --bs-btn-active-border-color: #a52834 !important;
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
}

.btn-danger:hover {
    background-color: #bb2d3b !important;
    border-color: #b02a37 !important;
}

.btn-outline-danger {
    --bs-btn-color: #dc3545 !important;
    --bs-btn-border-color: #dc3545 !important;
    --bs-btn-hover-bg: #dc3545 !important;
    --bs-btn-hover-border-color: #dc3545 !important;
    color: #dc3545 !important;
    border-color: #dc3545 !important;
}

.btn-outline-danger:hover {
    color: #fff !important;
    background-color: #dc3545 !important;
}

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

/* Search button single line */
#searchForm .btn-lg {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
}

/* ============================================
   Nav Tabs - Primary Color
   ============================================ */
.nav-tabs .nav-link {
    color: var(--primary-color);
    border: none;
    border-bottom: 2px solid transparent;
}

.nav-tabs .nav-link:hover {
    color: var(--primary-color);
    border-color: transparent;
    border-bottom-color: rgba(22, 45, 80, 0.3);
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
    border: none;
    border-bottom: 3px solid var(--primary-color);
    background-color: transparent;
}

/* ============================================
   Tables
   ============================================ */
.table thead th {
    background: var(--primary-color) !important;
    color: #fff !important;
    font-family: var(--font-family) !important;
    font-weight: 600;
    border: none !important;
}

.table tbody tr:hover {
    background: rgba(22, 45, 80, 0.03);
}

/* ============================================
   Form Controls
   ============================================ */
.form-control:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(22, 45, 80, 0.1) !important;
}

/* ============================================
   Badges
   ============================================ */
.badge-primary,
.badge.bg-primary {
    background: var(--primary-color) !important;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: #fff !important;
    border-top: 1px solid rgba(22, 45, 80, 0.1);
    font-family: var(--font-family) !important;
}

.footer a {
    color: var(--primary-color) !important;
    font-weight: 600;
}

/* ============================================
   Alerts
   ============================================ */
.alert {
    border-radius: 10px;
    border: none;
    font-family: var(--font-family) !important;
}

.alert-success {
    background: linear-gradient(135deg, #e3edf7 0%, #d1e3f3 100%);
    color: var(--primary-color);
    border-left: 4px solid var(--primary-color);
}

.alert-danger {
    background: linear-gradient(135deg, #fdeaea 0%, #f8d7da 100%);
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert-warning {
    background: linear-gradient(135deg, #fff8e6 0%, #fff3cd 100%);
    color: #856404;
    border-left: 4px solid #ffc107;
}

.alert-info {
    background: linear-gradient(135deg, #e3edf7 0%, #d1e3f3 100%);
    color: var(--primary-color);
    border-left: 4px solid var(--accent-color);
}

.alert .btn-close {
    padding: 18px;
    opacity: 0.6;
}

.alert .btn-close:hover {
    opacity: 1;
}

/* ============================================
   Text Colors
   ============================================ */
.text-primary {
    color: var(--primary-color) !important;
}

/* ============================================
   Links
   ============================================ */
a {
    color: var(--primary-color);
}

a:hover {
    color: var(--primary-light);
}

/* ============================================
   Page Title
   ============================================ */
.page-title {
    font-family: var(--font-family) !important;
    font-weight: 700;
    color: var(--primary-color);
}

/* ============================================
   Scrollbar
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* ============================================
   Checkbox Custom Styling
   ============================================ */
.form-check .form-check-label input[type="checkbox"]:checked + .input-helper:before {
    background: var(--primary-color) !important;
    background-image: none !important;
}

.form-check .form-check-label input[type="checkbox"] + .input-helper:before {
    border-color: var(--primary-color) !important;
}

.form-check .form-check-label input[type="checkbox"]:focus + .input-helper:before {
    box-shadow: 0 0 0 0.2rem rgba(22, 45, 80, 0.25) !important;
}

.form-check-input:checked {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e") !important;
}

.form-check-input:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.2rem rgba(22, 45, 80, 0.25) !important;
}

/* ============================================
   Guest/Auth Page Styles
   ============================================ */
.auth-page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 50%, var(--primary-dark) 100%);
    position: relative;
    overflow-x: hidden;
}

.auth-page-wrapper,
.auth-page-wrapper * {
    font-family: var(--font-family);
}

.auth-page-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.auth-left-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    color: #fff;
    position: relative;
    z-index: 1;
}

.auth-left-panel .feature-list {
    max-width: 400px;
    margin-top: 40px;
}

.auth-left-panel .feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.auth-left-panel .feature-item:nth-child(1) { animation-delay: 0.2s; }
.auth-left-panel .feature-item:nth-child(2) { animation-delay: 0.4s; }
.auth-left-panel .feature-item:nth-child(3) { animation-delay: 0.6s; }
.auth-left-panel .feature-item:nth-child(4) { animation-delay: 0.8s; }

.feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-icon i {
    font-size: 22px;
    color: var(--accent-color);
}

.feature-text h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #fff;
}

.feature-text p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.5;
}

.auth-right-panel {
    width: 480px;
    min-height: 100vh;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 50px;
    position: relative;
    z-index: 1;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.2);
}

.auth-form-container {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
}

.brand-logo {
    text-align: center;
    margin-bottom: 30px;
}

.brand-logo img {
    max-width: 180px;
    height: auto;
}

.auth-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
    text-align: center;
}

.auth-subtitle {
    font-size: 14px;
    color: #6c757d;
    text-align: center;
    margin-bottom: 30px;
}

.security-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #e3edf7 0%, #d1e3f3 100%);
    border: 1px solid var(--accent-color);
    border-radius: 8px;
    padding: 10px 15px;
    margin-bottom: 25px;
}

.security-badge i {
    color: var(--primary-color);
    font-size: 16px;
}

.security-badge span {
    font-size: 12px;
    color: var(--primary-color);
    font-weight: 500;
}

.hero-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.hero-title .highlight {
    color: var(--accent-color);
}

.hero-description {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* Floating shapes */
.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(90, 155, 212, 0.1) 0%, rgba(90, 155, 212, 0.05) 100%);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: 100px;
    left: 50px;
    animation-delay: 2s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 30%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Guest Form styles */
.auth-page-wrapper .form-group label {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 13px;
    margin-bottom: 8px;
}

.auth-page-wrapper .form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.auth-page-wrapper .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(22, 45, 80, 0.1);
}

.auth-page-wrapper .btn-primary {
    border-radius: 10px;
    padding: 14px 20px;
    font-size: 14px;
}

/* Auth link */
.auth-link {
    color: var(--primary-color) !important;
    font-weight: 500;
}

.auth-link:hover {
    color: var(--primary-light) !important;
}

/* ============================================
   Responsive - Guest Page
   ============================================ */
@media (min-width: 992px) {
    .auth-page-wrapper {
        flex-direction: row;
    }
}

@media (max-width: 991px) {
    .auth-page-wrapper {
        flex-direction: column;
    }

    .auth-left-panel {
        padding: 30px 20px;
        min-height: auto;
    }

    .hero-title {
        font-size: 26px;
    }

    .hero-description {
        font-size: 14px;
    }

    .auth-left-panel .feature-list {
        margin-top: 25px;
    }

    .auth-left-panel .feature-item {
        margin-bottom: 18px;
    }

    .feature-icon {
        width: 42px;
        height: 42px;
    }

    .feature-icon i {
        font-size: 18px;
    }

    .feature-text h4 {
        font-size: 14px;
    }

    .feature-text p {
        font-size: 12px;
    }

    .auth-right-panel {
        width: 100%;
        min-height: auto;
        padding: 30px 20px;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
        border-radius: 30px 30px 0 0;
        margin-top: -20px;
    }

    .brand-logo {
        margin-bottom: 20px;
    }

    .brand-logo img {
        max-width: 140px;
    }

    .security-badge {
        padding: 8px 12px;
        margin-bottom: 20px;
    }
}
