/* ========================================
   USER CUSTOM STYLES - Blue & Silver Theme
   ======================================== */

:root {
    --primary-blue: #44539C;
    --secondary-blue: #273693;
    --dark-blue: #0F1C79;
    --light-gray: #ABABB0;
    --lighter-gray: #D8D8D8;
    --medium-gray: #838995;
    --white: #FFFFFF;
    --text-dark: #2C3E50;
    --text-light: #6C757D;
}

/* ========================================
   GLOBAL STYLES
   ======================================== */
body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background-color: #F8F9FA;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-blue);
    text-decoration: none;
}

/* ========================================
   NAVBAR STYLES
   ======================================== */
.navbar {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%) !important;
    box-shadow: 0 2px 10px rgba(68, 83, 156, 0.15);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    color: var(--white) !important;
    font-size: 1.5rem;
}

.navbar .nav-link {
    color: var(--white) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.navbar .btn-primary {
    background: var(--white);
    color: var(--primary-blue);
    border: none;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.navbar .btn-primary:hover {
    background: var(--lighter-gray);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Navbar menu wrapper */
.navbar-menu-wrapper {
    background: transparent !important;
}

/* Navbar toggler */
.navbar-toggler {
    color: var(--white) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.navbar-toggler .icon-menu {
    color: var(--white) !important;
}

/* ========================================
   SIDEBAR STYLES
   ======================================== */
.sidebar {
    background: linear-gradient(180deg, var(--dark-blue) 0%, var(--primary-blue) 100%) !important;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar .nav-item .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    padding: 1rem 1.5rem;
    margin: 0.25rem 0.5rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.sidebar .nav-item .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--white) !important;
    transform: translateX(5px);
}

.sidebar .nav-item.active .nav-link,
.sidebar .nav-item .nav-link._nav-link:hover {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 100%) !important;
    color: var(--white) !important;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-left: 4px solid var(--white);
}

.sidebar .menu-icon {
    color: var(--white) !important;
    margin-right: 0.75rem;
    font-size: 1.2rem;
}

.sidebar .navbar-brand-wrapper {
    background: rgba(0, 0, 0, 0.1);
}

.sidebar-offcanvas {
    background: linear-gradient(180deg, var(--dark-blue) 0%, var(--primary-blue) 100%) !important;
}

/* Active menu styling */
.nav-item.active .nav-link .menu-icon,
.nav-item.active .nav-link .menu-title {
    color: var(--white) !important;
    font-weight: 700;
}

/* Force override any teal/green hover */
.sidebar .nav .nav-item .nav-link:hover,
.sidebar .nav .nav-item .nav-link:focus {
    background: rgba(255, 255, 255, 0.1) !important;
    color: var(--white) !important;
}

.sidebar .nav .nav-item:hover .nav-link {
    background: rgba(255, 255, 255, 0.1) !important;
}

.sidebar .nav .nav-item:hover .menu-icon,
.sidebar .nav .nav-item:hover .menu-title {
    color: var(--white) !important;
}

/* ========================================
   CARD STYLES
   ======================================== */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(68, 83, 156, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(68, 83, 156, 0.15);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    border: none;
    padding: 1.25rem 1.5rem;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

/* Icon Cards */
.icon-card {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    box-shadow: 0 4px 12px rgba(68, 83, 156, 0.25);
}

.icon-card i {
    font-size: 1.75rem;
}

/* ========================================
   BUTTON STYLES
   ======================================== */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    border: none;
    color: var(--white);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(68, 83, 156, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-blue) 0%, var(--dark-blue) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(68, 83, 156, 0.35);
}

.btn-outline-primary {
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(68, 83, 156, 0.25);
}

.btn-secondary {
    background: var(--medium-gray);
    border: none;
    color: var(--white);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--light-gray);
    transform: translateY(-2px);
}

/* ========================================
   BADGE STYLES
   ======================================== */
.badge-primary {
    background: var(--primary-blue);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
}

.badge-secondary {
    background: var(--medium-gray);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
}

/* ========================================
   FORM STYLES
   ======================================== */
.form-control {
    border: 2px solid var(--lighter-gray);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(68, 83, 156, 0.15);
}

.form-label {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* ========================================
   SEARCH BOX
   ======================================== */
.search-box {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.search-input {
    border: 2px solid var(--lighter-gray);
    border-radius: 25px 0 0 25px;
    padding: 1rem 1.5rem;
    width: 100%;
    max-width: 500px;
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(68, 83, 156, 0.15);
}

.search-btn {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 0 25px 25px 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: linear-gradient(135deg, var(--secondary-blue) 0%, var(--dark-blue) 100%);
    transform: translateX(2px);
}

/* ========================================
   HEADER BOX
   ======================================== */
.header-box {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: 0 8px 25px rgba(68, 83, 156, 0.2);
    color: var(--white);
}

.header-box small {
    color: rgba(255, 255, 255, 0.85);
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.header-box h2 {
    font-weight: 700;
    color: var(--white);
    margin: 0.5rem 0;
    font-size: 2rem;
}

.header-box h1 {
    font-weight: 800;
    color: var(--white);
    font-size: 2.5rem;
    margin: 0.5rem 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* ========================================
   SLIDER/CAROUSEL
   ======================================== */
.slide-home img {
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(68, 83, 156, 0.15);
}

.slick-dots li button:before {
    color: var(--primary-blue) !important;
    font-size: 12px;
}

.slick-dots li.slick-active button:before {
    color: var(--secondary-blue) !important;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-blue) 100%) !important;
    color: var(--white) !important;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer span {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* ========================================
   CONTENT WRAPPER
   ======================================== */
.content-wrapper {
    background-color: #F8F9FA;
    padding: 2rem;
    min-height: calc(100vh - 200px);
}

.main-panel {
    background-color: #F8F9FA;
}

/* ========================================
   SCHOOL/COMPANY CARD STYLES
   ======================================== */
.school-card,
.company-card,
.document-card,
.work-card {
    background: var(--white);
    border: none;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(68, 83, 156, 0.08);
    transition: all 0.3s ease;
}

.school-card:hover,
.company-card:hover,
.document-card:hover,
.work-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(68, 83, 156, 0.15);
}

.school-card .card-title,
.company-card .card-title {
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.school-card .card-text,
.company-card .card-text {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

.school-card img,
.company-card img {
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(68, 83, 156, 0.1);
}

/* Button in cards */
.school-card .btn,
.company-card .btn,
.document-card .btn,
.work-card .btn {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    border: none;
    color: var(--white);
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.school-card .btn:hover,
.company-card .btn:hover,
.document-card .btn:hover,
.work-card .btn:hover {
    background: linear-gradient(135deg, var(--secondary-blue) 0%, var(--dark-blue) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(68, 83, 156, 0.25);
}

/* ========================================
   PAGE HEADER
   ======================================== */
.page-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    color: var(--white);
    box-shadow: 0 4px 15px rgba(68, 83, 156, 0.2);
}

.page-header h1,
.page-header h2 {
    color: var(--white);
    font-weight: 700;
    margin: 0;
}

.page-header .total-count {
    font-size: 3rem;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.bg-primary-gradient {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
}

.bg-blue {
    background-color: var(--primary-blue) !important;
}

.text-blue {
    color: var(--primary-blue) !important;
}

.text-secondary-blue {
    color: var(--secondary-blue) !important;
}

.shadow-custom {
    box-shadow: 0 4px 15px rgba(68, 83, 156, 0.1);
}

.rounded-custom {
    border-radius: 15px;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .header-box h1 {
        font-size: 1.75rem;
    }
    
    .header-box h2 {
        font-size: 1.5rem;
    }
    
    .search-input {
        max-width: 100%;
    }
    
    .card {
        margin-bottom: 1rem;
    }
}

/* ========================================
   ANIMATION
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ========================================
   OVERRIDE DEFAULT SKYDASH STYLES
   ======================================== */
/* Remove any green backgrounds */
.bg-success,
.bg-gradient-success {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%) !important;
}

.text-success {
    color: var(--primary-blue) !important;
}

.btn-success {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%) !important;
    border: none !important;
}

/* Navbar specific overrides */
.navbar .navbar-menu-wrapper {
    background: transparent !important;
}

.navbar .icon-menu,
.navbar .icon-bell,
.navbar .nav-link {
    color: var(--white) !important;
}

.navbar .dropdown-toggle::after {
    color: var(--white) !important;
}

/* Sidebar specific overrides */
.sidebar .nav .nav-item.active > .nav-link {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 100%) !important;
    color: var(--white) !important;
    font-weight: 600 !important;
    border-left: 4px solid var(--white) !important;
}

.sidebar .nav .nav-item.active > .nav-link .menu-icon,
.sidebar .nav .nav-item.active > .nav-link .menu-title {
    color: var(--white) !important;
}

/* Sidebar hover state - override green */
.sidebar .nav .nav-item .nav-link:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: var(--white) !important;
}

.sidebar .nav .nav-item:hover > .nav-link {
    background: rgba(255, 255, 255, 0.1) !important;
    color: var(--white) !important;
}

.sidebar .nav .nav-item .nav-link:hover .menu-icon,
.sidebar .nav .nav-item .nav-link:hover .menu-title {
    color: var(--white) !important;
}

/* Remove any teal/green hover effects */
.sidebar .nav .nav-item .nav-link:hover,
.sidebar .nav .nav-item .nav-link:focus,
.sidebar .nav .nav-item .nav-link.active {
    background: rgba(255, 255, 255, 0.1) !important;
}

.sidebar .nav .nav-item.active .nav-link:hover {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.2) 100%) !important;
}

/* Override Skydash default hover colors */
.sidebar .nav .nav-item .nav-link:not(.sub-menu) .menu-title:hover,
.sidebar .nav .nav-item .nav-link:not(.sub-menu):hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: var(--white) !important;
}

/* ========================================
   LOADING OVERLAY
   ======================================== */
.LoadingOverlay {
    background: rgba(68, 83, 156, 0.9) !important;
}

/* ========================================
   WHATSAPP BUTTON
   ======================================== */
.wa-button {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%) !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
}

.wa-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}
