/* ========================================
   CLUJET 2026 - Main Stylesheet
   Cluster University of Jammu Entrance Test
   Bold & Professional Theme
   ======================================== */

/* --- Base Resets & Defaults --- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #333;
    background-color: var(--clj-light);
    line-height: 1.6;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6,
.heading {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    color: var(--clj-dark);
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

/* --- Sticky Navbar + Ticker Wrapper --- */
.sticky-nav-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1030;
}

/* --- Navbar --- */
.clj-navbar {
    background: linear-gradient(135deg, var(--clj-primary) 0%, var(--clj-secondary) 100%);
    padding: 0.5rem 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-bottom: 3px solid var(--clj-accent);
}

.clj-navbar .navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.brand-logo .navbar-logo {
    height: 55px;
    width: auto;
    object-fit: contain;
    border-radius: 4px;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    line-height: 1.2;
}

.brand-subtitle {
    font-size: 0.75rem;
    color: var(--clj-accent);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.clj-navbar .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    border-radius: 4px;
    margin: 0 2px;
    font-size: 0.9rem;
}

.clj-navbar .nav-link:hover,
.clj-navbar .nav-link.active {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.1);
}

.clj-navbar .nav-link.active {
    border-bottom: 2px solid var(--clj-accent);
}

/* --- Navbar Dropdown --- */
.clj-navbar .dropdown-menu {
    background: var(--clj-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.5rem 0;
    margin-top: 0.25rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    min-width: 220px;
}

.clj-navbar .dropdown-item {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.clj-navbar .dropdown-item:hover,
.clj-navbar .dropdown-item:focus {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.clj-navbar .dropdown-item.active {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--clj-accent);
}

.clj-navbar .dropdown-divider {
    border-top-color: rgba(255, 255, 255, 0.1);
    margin: 0.3rem 0;
}

/* --- Preloader --- */
.se-pre-con {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: url(../images/load.gif) center no-repeat #fcfefc;
}

/* --- Main Wrapper --- */
.wm-main-wrapper {
    width: 100%;
    overflow-x: hidden;
}

/* --- Mini Header (replaces Hero Banner) --- */
.wm-mini-header {
    background-image: url(../images/header1.webp);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    text-align: center;
    padding: 55px 0 50px;
    position: relative;
}

body.admin-report-page .wm-mini-header {
    display: none;
}

body.admin-report-page section.py-4 {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.wm-blue-transparent {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(74, 16, 96, 0.23);
}

.wm-mini-title {
    position: relative;
    z-index: 1;
}

.wm-mini-title h1 {
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    font-size: 2.2rem;
    color: #56156a;
    margin-bottom: 0.3rem;
}

.wm-mini-subtitle {
    font-size: 1.05rem;
    color: #212529;
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 0.2rem;
}

.wm-mini-desc {
    font-size: 0.9rem;
    color: #56156a;
    margin-bottom: 0;
}

.wm-schedule-badges {
    margin-top: 1rem;
    position: relative;
    z-index: 1;
}

.wm-schedule-badges .badge {
    background: rgb(155 120 174);
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 0.5rem 1rem;
    margin: 0.25rem;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 20px;
    color: #56156a;
}

.wm-schedule-badges .badge i {
    color: #691e78;
    margin-right: 5px;
}

.wm-breadcrumb {
    position: relative;
    z-index: 1;
    margin-top: 0.8rem;
}

.wm-breadcrumb ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wm-breadcrumb ul li {
    display: inline;
    color: #212529;
    font-size: 0.85rem;
}

.wm-breadcrumb ul li + li::before {
    content: ' / ';
    color: #212529;
    margin: 0 6px;
}

.wm-breadcrumb ul li a {
    color: black;
    text-decoration: none;
    transition: color 0.2s;
}

.wm-breadcrumb ul li a:hover {
    color: #fff;
}

/* --- Card Styles --- */
.clj-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.clj-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.clj-card .card-header {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.2rem;
    padding: 1rem 1.5rem;
    border-bottom: none;
}

.clj-card .card-body {
    padding: 1.5rem;
}

.card-primary-border {
    border-top: 4px solid var(--clj-primary);
}

.card-secondary-border {
    border-top: 4px solid var(--clj-secondary);
}

.card-accent-border {
    border-top: 4px solid var(--clj-accent);
}

/* --- Form Styles --- */
.clj-form-control {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background-color: #fafafa;
}

.clj-form-control:focus {
    border-color: var(--clj-secondary);
    box-shadow: 0 0 0 3px rgba(var(--clj-secondary-rgb), 0.15);
    background-color: #fff;
}

.clj-form-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: #444;
    margin-bottom: 0.35rem;
}

.clj-form-label .required {
    color: var(--clj-danger);
    margin-left: 2px;
}

.form-select.clj-form-control {
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--clj-secondary);
    border-color: var(--clj-secondary);
}

/* Fieldset styling */
.clj-fieldset {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    background-color: #fafafa;
}

.clj-fieldset legend,
.clj-fieldset-title {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 1rem;
    color: var(--clj-primary);
    padding: 0 0.5rem;
    display: inline-block;
    background: #fafafa;
    margin-bottom: 0.75rem;
}

/* --- Button Variants --- */
.btn-clj-primary {
    background: linear-gradient(135deg, var(--clj-primary), var(--clj-secondary));
    color: #fff;
    border: none;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-clj-primary:hover {
    background: linear-gradient(135deg, var(--clj-secondary), var(--clj-primary));
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(var(--clj-primary-rgb), 0.4);
}

.btn-clj-secondary {
    background: linear-gradient(135deg, #9c27b0, var(--clj-primary));
    color: #fff;
    border: none;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-clj-secondary:hover {
    background: linear-gradient(135deg, var(--clj-primary), #9c27b0);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(var(--clj-secondary-rgb), 0.4);
}

.btn-clj-accent {
    background: transparent;
    color: var(--clj-accent);
    border: 2px solid var(--clj-accent);
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-clj-accent:hover {
    background: var(--clj-accent);
    color: var(--clj-dark);
    transform: translateY(-1px);
}

.btn-clj-primary:disabled,
.btn-clj-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* --- Status Badges --- */
.badge-clj-success {
    background-color: var(--clj-success);
    color: #fff;
    font-size: 0.75rem;
    padding: 0.4em 0.8em;
    border-radius: 20px;
}

.badge-clj-warning {
    background-color: var(--clj-warning);
    color: #fff;
    font-size: 0.75rem;
    padding: 0.4em 0.8em;
    border-radius: 20px;
}

.badge-clj-danger {
    background-color: var(--clj-danger);
    color: #fff;
    font-size: 0.75rem;
    padding: 0.4em 0.8em;
    border-radius: 20px;
}

.badge-clj-info {
    background-color: var(--clj-primary);
    color: #fff;
    font-size: 0.75rem;
    padding: 0.4em 0.8em;
    border-radius: 20px;
}

/* --- Fee Alert Box --- */
.fee-alert {
    background: linear-gradient(135deg, #fff9e6, #fff3cd);
    border: 1px solid var(--clj-accent);
    border-left: 4px solid var(--clj-accent);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.fee-alert .fee-amount {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--clj-secondary);
}

/* --- Section Divider --- */
.section-divider {
    border: 0;
    height: 2px;
    background: linear-gradient(to right, var(--clj-primary), var(--clj-accent), var(--clj-secondary));
    margin: 1.5rem 0;
    border-radius: 2px;
}

/* --- Toast / Alert --- */
.clj-alert {
    border-radius: 10px;
    border: none;
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
}

.clj-alert-success {
    background-color: #e8f5e9;
    color: var(--clj-success);
    border-left: 4px solid var(--clj-success);
}

.clj-alert-danger {
    background-color: #ffebee;
    color: var(--clj-danger);
    border-left: 4px solid var(--clj-danger);
}

.clj-alert-info {
    background-color: #f3e5f5;
    color: var(--clj-primary);
    border-left: 4px solid var(--clj-primary);
}

/* --- Captcha --- */
.captcha-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.captcha-box {
    background: linear-gradient(135deg, #f3e5f5, #e1bee7);
    padding: 8px 20px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 1.4rem;
    font-weight: bold;
    letter-spacing: 5px;
    color: var(--clj-primary);
    user-select: none;
    border: 1px solid #ce93d8;
    position: relative;
    min-width: 140px;
    text-align: center;
}

.captcha-box::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 1px;
    background: rgba(0,0,0,0.2);
    transform: rotate(-5deg);
}

.captcha-refresh {
    cursor: pointer;
    color: var(--clj-primary);
    font-size: 1.1rem;
    transition: transform 0.3s;
}

.captcha-refresh:hover {
    transform: rotate(180deg);
}

/* --- Footer --- */
.clj-footer {
    background: linear-gradient(135deg, var(--clj-primary) 0%, var(--clj-secondary) 100%);
    color: rgba(255,255,255,0.8);
    padding-top: 2rem;
    position: relative;
    overflow: hidden;
}

/* Floating Circles Animation */
.footer-circles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
    z-index: 0;
}

.footer-circles li {
    position: absolute;
    display: block;
    list-style: none;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.06);
    animation: footerFloat 25s linear infinite;
    bottom: -150px;
}

.footer-circles li:nth-child(1) {
    left: 25%;
    width: 80px;
    height: 80px;
    animation-delay: 0s;
}

.footer-circles li:nth-child(2) {
    left: 10%;
    width: 20px;
    height: 20px;
    animation-delay: 2s;
    animation-duration: 12s;
}

.footer-circles li:nth-child(3) {
    left: 70%;
    width: 20px;
    height: 20px;
    animation-delay: 4s;
}

.footer-circles li:nth-child(4) {
    left: 40%;
    width: 60px;
    height: 60px;
    animation-delay: 0s;
    animation-duration: 18s;
}

.footer-circles li:nth-child(5) {
    left: 65%;
    width: 20px;
    height: 20px;
    animation-delay: 0s;
}

.footer-circles li:nth-child(6) {
    left: 75%;
    width: 110px;
    height: 110px;
    animation-delay: 3s;
}

.footer-circles li:nth-child(7) {
    left: 35%;
    width: 150px;
    height: 150px;
    animation-delay: 7s;
}

.footer-circles li:nth-child(8) {
    left: 50%;
    width: 25px;
    height: 25px;
    animation-delay: 15s;
    animation-duration: 45s;
}

.footer-circles li:nth-child(9) {
    left: 20%;
    width: 15px;
    height: 15px;
    animation-delay: 2s;
    animation-duration: 35s;
}

.footer-circles li:nth-child(10) {
    left: 85%;
    width: 150px;
    height: 150px;
    animation-delay: 0s;
    animation-duration: 11s;
}

@keyframes footerFloat {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
        border-radius: 0;
    }
    100% {
        transform: translateY(-800px) rotate(720deg);
        opacity: 0;
        border-radius: 50%;
    }
}

.footer-heading {
    font-family: 'Playfair Display', serif;
    color: var(--clj-accent);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--clj-accent);
}

.footer-text {
    font-size: 0.85rem;
    line-height: 1.7;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--clj-accent);
    margin-right: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social a:hover {
    background: var(--clj-accent);
    color: var(--clj-dark);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--clj-accent);
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    margin-bottom: 0.6rem;
    font-size: 0.85rem;
}

.footer-contact a {
    color: var(--clj-accent);
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 0;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.75);
}

/* --- Scrolling Notification Ticker --- */
.clj-ticker-wrap {
    display: flex;
    align-items: stretch;
    background: var(--clj-dark);
    border-top: 2px solid var(--clj-accent);
    border-bottom: 2px solid var(--clj-accent);
    overflow: hidden;
}

.clj-ticker-label {
    background: var(--clj-accent);
    color: var(--clj-dark);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.6rem 1rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    z-index: 1;
}

.clj-ticker-content {
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    position: relative;
}

.clj-ticker-track {
    display: flex;
    white-space: nowrap;
    animation: tickerScroll 30s linear infinite;
}

.clj-ticker-item {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    padding: 0.6rem 2rem;
    display: inline-block;
}

.clj-ticker-link {
    color: #fff;
    font-weight: 600;
    margin-left: 0.5rem;
    text-decoration: underline;
}

.clj-ticker-link:hover {
    color: var(--clj-accent);
}

.notification-scroll-list,
.notification-admin-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.notification-scroll-list {
    max-height: 360px;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.notification-scroll-item,
.notification-admin-item {
    border: 1px solid rgba(var(--clj-primary-rgb), 0.12);
    border-radius: 10px;
    padding: 1rem;
    background: linear-gradient(180deg, #fff 0%, #faf7fc 100%);
}

.notification-scroll-item + .notification-scroll-item,
.notification-admin-item + .notification-admin-item {
    margin-top: 0.25rem;
}

@keyframes tickerScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.clj-ticker-wrap:hover .clj-ticker-track {
    animation-play-state: paused;
}

/* --- Modal Enhancements --- */
.modal-header.clj-modal-header {
    background: linear-gradient(135deg, var(--clj-primary), var(--clj-secondary));
    color: #fff;
    border-radius: 0;
}

.modal-header.clj-modal-header .btn-close {
    filter: invert(1);
}

/* --- Utility Classes --- */
.text-clj-primary { color: var(--clj-primary) !important; }
.text-clj-secondary { color: var(--clj-secondary) !important; }
.text-clj-accent { color: var(--clj-accent) !important; }
.text-clj-success { color: var(--clj-success) !important; }
.text-clj-danger { color: var(--clj-danger) !important; }

.bg-clj-primary { background-color: var(--clj-primary) !important; }
.bg-clj-secondary { background-color: var(--clj-secondary) !important; }
.bg-clj-accent { background-color: var(--clj-accent) !important; }

.border-clj-accent { border-color: var(--clj-accent) !important; }

/* --- Responsive --- */
@media (max-width: 991.98px) {
    .wm-mini-title h1 {
        font-size: 1.8rem;
    }

    .wm-mini-header {
        padding: 40px 0 35px;
    }

    .brand-title {
        font-size: 0.9rem;
    }

    .brand-subtitle {
        font-size: 0.65rem;
    }

    .brand-logo .navbar-logo {
        height: 45px;
    }
}

@media (max-width: 767.98px) {
    .wm-mini-header {
        padding: 30px 0 25px;
        background-size: cover;
        background-image: none;
    }

    .wm-mini-title h1 {
        font-size: 1.4rem;
    }

    .wm-schedule-badges .badge {
        font-size: 0.7rem;
        padding: 0.35rem 0.7rem;
    }

    .wm-mini-subtitle {
        font-size: 0.85rem;
    }

    .clj-card .card-body {
        padding: 1rem;
    }

}

/* --- Loading Spinner --- */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    display: none;
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--clj-accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- Scroll to top --- */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--clj-primary);
    color: #fff;
    border: 2px solid var(--clj-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    font-size: 1.1rem;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    background: var(--clj-secondary);
    transform: translateY(-3px);
}
