﻿/* Main Site Styles */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --light-gray: #f8f9fa;
    --border-color: #dee2e6;
    --text-color: #333;
    --error-color: #e74c3c;
    --required-color: #e74c3c;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container-fluid {
    padding-left: 0;
    padding-right: 0;
}

/* Navbar Customization */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.4rem;
}

/* Footer */
.footer {
    margin-top: auto;
}

/* Utility Classes */
.required-field label:after {
    content: '*';
    color: var(--required-color);
    margin-left: 4px;
    font-size: 1.1em;
}

.validation-summary-errors {
    color: var(--error-color);
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
}

.field-validation-error {
    color: var(--error-color);
    font-size: 0.875rem;
    display: block;
    margin-top: 5px;
}

.input-validation-error {
    border-color: var(--error-color) !important;
    background-color: #fff5f5;
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Alert Messages */
.alert-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1050;
    max-width: 400px;
}

/* Card Styling */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 5px 20px rgba(0,0,0,0.12);
    }

/* Button Enhancements */
.btn {
    border-radius: 6px;
    font-weight: 500;
    padding: 10px 25px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color), #2980b9);
    border: none;
}

    .btn-primary:hover {
        background: linear-gradient(135deg, #2980b9, var(--secondary-color));
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
    }

/* Form Control Styling */
.form-control {
    border-radius: 6px;
    border: 2px solid var(--border-color);
    padding: 12px 15px;
    transition: all 0.3s ease;
}

    .form-control:focus {
        border-color: var(--secondary-color);
        box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    }

/* Responsive Design */
@@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.2rem;
    }

    .btn {
        padding: 8px 20px;
    }
}

@@media print {
    .navbar,
    .footer,
    .no-print {
        display: none !important;
    }
}

.modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
}



/*Reloading page Overlay Start */
#pageReloadOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(4px);
    background-color: rgba(0,0,0,0.35);
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

#pageReloadOverlay.show {
    visibility: visible;
    opacity: 1;
}
/*Reloading page Overlay End */



/* Going to Home Page Overlay Start */
#goingToHomePageOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(4px);
    background-color: rgba(0,0,0,0.35);
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

    #goingToHomePageOverlay.show {
        visibility: visible;
        opacity: 1;
    }
/* Going to Home Page Overlay End */

/*Edit Course Overlay Start */
#editCourseOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(4px);
    background-color: rgba(0,0,0,0.35);
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

#editCourseOverlay.show {
    visibility: visible;
    opacity: 1;
}
/*Edit Course Overlay End */


/*Session expired page Overlay Start */
#sessionExpiredOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(4px);
    background-color: rgba(0,0,0,0.35);
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

#sessionExpiredOverlay.show {
    visibility: visible;
    opacity: 1;
}
/*Session expired page Overlay End */


/*Index page css start*/

.select2-container {
    width: 210px !important;
}

.select2-selection {
    width: 210px !important;
}

.select2-dropdown {
    width: 210px !important;
}

.confirm-checkbox {
    margin: 15px 0;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
    border-left: 4px solid #007bff;
}

    .confirm-checkbox label {
        font-weight: bold;
        margin-left: 5px;
    }

.btn-export:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/*  adding border for the boxes */
.form-row {
    border: 1px solid #ced4da; /* subtle border */
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 6px; /* slightly rounded corners */
    background-color: #f5f7fa; /* professional light gray */
}

    .form-row input,
    .form-row select,
    .form-row textarea {
        border-radius: 4px;
        border: 1px solid #ced4da;
        background-color: #ffffff; /* clean white for readability */
        padding: 6px 8px;
    }

        .form-row input:focus,
        .form-row select:focus,
        .form-row textarea:focus {
            background-color: #e2e6ea; /* subtle highlight on focus */
            outline: none;
            border-color: #007bff; /* optional: primary blue focus border */
        }

#coursesCount {
    display: inline; /* ensures it does not add extra spacing */
    margin: 0; /* remove any margin */
    padding: 0; /* remove any padding */
}


#underConstructionOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(4px); /* modern blur effect */
    background-color: rgba(0,0,0,0.35); /* semi-transparent dark */
    display: flex;
    visibility: hidden; /* hide initially */
    opacity: 0; /* optional for smooth fade-in */
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

    #underConstructionOverlay.show {
        visibility: visible;
        opacity: 1;
    }

.overlay-card {
    background: #fff;
    padding: 2rem 3rem;
    border-radius: 12px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.25);
    text-align: center;
    max-width: 500px;
    animation: slideDown 0.5s ease-out;
}

    .overlay-card h1 {
        font-size: 2rem;
        color: #ff4d4f; /* accent red */
        margin-bottom: 1rem;
        animation: pulse 1.5s infinite;
    }

    .overlay-card p {
        font-size: 1.1rem;
        color: #333;
        margin-bottom: 1.5rem;
    }

.loader {
    width: 40px;
    height: 40px;
    border: 5px solid #eee;
    border-top: 5px solid #ff4d4f;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

/* Animations */
@@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

@@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@@keyframes slideDown {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}



/*index page css end*/




/*For disabling the dropdowns based on KSU Online, Global and for Off Site campus start*/
/* Disabled form control visuals */
.readonly-select, .readonly-select.select2-hidden-accessible + .select2-container--default .select2-selection {
    background-color: #e9ecef !important; /* light gray */
    color: #6c757d !important; /* muted text */
    cursor: not-allowed !important; /* blocked cursor */
}

/* Ensure the arrow also looks disabled */
.readonly-select.select2-hidden-accessible + .select2-container--default .select2-selection__arrow {
    color: #6c757d !important;
    cursor: not-allowed !important;
}

/*For disabling the dropdowns based on KSU Online, Global and for Off Site campus end*/












/* Toast styling */
.toast {
    width: auto !important;
    max-width: 400px;
    min-width: 200px;
    white-space: nowrap;
}

#toastContainer {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1080;
}

.dynamic-toast {
    width: auto !important;
    max-width: 400px;
    min-width: 200px;
    white-space: normal;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 0.95;
    overflow: hidden;
    font-size: 1.1rem;
    font-weight: bold;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

    .dynamic-toast .toast-body {
        padding: 0.75rem 1rem;
        line-height: 1.3;
        color: #fff;
    }

    .dynamic-toast .btn-close {
        filter: brightness(1.2);
    }

    .dynamic-toast.showing {
        transform: translateX(100%);
    }

    .dynamic-toast.show {
        transform: translateX(0);
        opacity: 1;
    }

    .dynamic-toast.hide {
        transform: translateX(100%);
        opacity: 0;
    }