﻿:root {
    --bs-body-bg: #ffffff;
    --bs-body-color: #212529;
    --header-bg: #ffffff;
    --card-bg: #ffffff;
    --border-color: #dee2e6;
}

[data-bs-theme="dark"] {
    --bs-body-bg: #212529;
    --bs-body-color: #f8f9fa;
    --header-bg: #343a40;
    --card-bg: #2c3034;
    --border-color: #495057;
}

.theme-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 8px 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

    .theme-switcher:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    }

.theme-toggle {
    background: none;
    border: none;
    color: var(--bs-body-color);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .theme-toggle:hover {
        background-color: var(--border-color);
        transform: scale(1.1);
    }

    .theme-toggle .theme-icon {
        transition: transform 0.3s ease;
    }

    .theme-toggle:hover .theme-icon {
        transform: rotate(180deg);
    }

.header-section {
    background-color: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
}

.navbar {
    transition: all 0.3s ease;
}

.dropdown-menu {
    --bs-dropdown-zindex: 10000;
}

[data-bs-theme="dark"] .navbar-dark {
    background-color: #1a1d20 !important;
}

[data-bs-theme="dark"] .bg-primary {
    background-color: #0d6efd !important;
}

[data-bs-theme="dark"] .text-primary {
    color: #6ea8fe !important;
}

[data-bs-theme="dark"] .text-danger {
    color: #f87171 !important;
}

[data-bs-theme="dark"] .bg-light {
    background-color: #343a40 !important;
}

[data-bs-theme="dark"] .container-fluid.bg-white {
    background-color: var(--header-bg) !important;
}

[data-bs-theme="dark"] .body-content {
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
}


.control-label {
    font-weight: bold;
}

@media print {
    .col-sm-1,
    .col-sm-2,
    .col-sm-3,
    .col-sm-4,
    .col-sm-5,
    .col-sm-6,
    .col-sm-7,
    .col-sm-8,
    .col-sm-9,
    .col-sm-10,
    .col-sm-11,
    .col-sm-12 {
        float: none;
        width: 100%;
    }

    @page {
        margin: 0;
    }

    body {
        margin: 0.6cm;
    }

    .card {
        all: unset !important; /* Removes all styles from the .card */
    }
    .container.border {
        all: unset !important;
    }
}

.nav-link {
    font-weight: bold;
}

.uniname {
    font-family: Cambria,Cochin,Georgia,Times,Times New Roman,serif;
    font-weight: bold;
    font-size: 35px;
    text-align: center;
}
.input-group-text{
    background-color:unset;
}
.navbar-nav .nav-link.active, .navbar-nav .nav-link.show {
    background-color: rgba(0, 0, 0, .5);
    border-radius: .375rem;
}

/* Compact Progress Tracker - Green Theme */
.progress-tracker {
    background: linear-gradient(135deg, #4fac8a 0%, #1a936f 100%);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.step-item {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

    .step-item:last-child {
        margin-bottom: 0;
    }

.step-number {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
    margin-right: 0.75rem;
    transition: all 0.3s ease;
}

.step-item.active .step-number {
    background: #2ecc71;
    border-color: #27ae60;
    box-shadow: 0 0 15px rgba(46, 204, 113, 0.4);
}

.step-item.completed .step-number {
    background: #16a085;
    border-color: #1abc9c;
}

.step-item.disabled .step-number {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.5);
}

.step-content {
    flex: 1;
}

.step-title {
    color: white;
    font-weight: 600;
    margin: 0;
    font-size: 0.9rem;
}

.step-item.disabled .step-title {
    color: rgba(255,255,255,0.6);
}

.step-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s ease;
}

    .step-link:hover {
        transform: translateX(3px);
    }

.step-item.disabled .step-link {
    pointer-events: none;
}

/* Current Step Highlighting */
.step-item.current .step-number {
    background: #ffc107;
    border-color: #ffc107;
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.6);
    animation: pulse 2s infinite;
}

.step-item.current .step-title {
    color: #ffc107;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 193, 7, 0.3);
}

.step-item.current .step-link {
    transform: scale(1.05);
}

    .step-item.current .step-link:hover {
        transform: scale(1.1);
    }

@keyframes pulse {
    0% {
        box-shadow: 0 0 20px rgba(255, 193, 7, 0.6);
    }

    50% {
        box-shadow: 0 0 30px rgba(255, 193, 7, 0.8);
    }

    100% {
        box-shadow: 0 0 20px rgba(255, 193, 7, 0.6);
    }
}

/* Horizontal Progress Tracker for Desktop */
@media (min-width: 768px) {
    .progress-tracker {
        padding: 1.5rem;
    }

    .progress-steps-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
    }

    .step-item {
        flex: 1;
        flex-direction: column;
        text-align: center;
        margin-bottom: 0;
        margin-right: 1rem;
        position: relative;
    }

        .step-item:last-child {
            margin-right: 0;
        }

        .step-item:not(:last-child)::after {
            content: '';
            position: absolute;
            top: 17px;
            right: -0.5rem;
            width: 1rem;
            height: 2px;
            background: rgba(255,255,255,0.3);
        }

        .step-item.completed:not(:last-child)::after {
            background: #16a085;
        }

        .step-item.active:not(:last-child)::after {
            background: #2ecc71;
        }

    .step-number {
        margin-right: 0;
        margin-bottom: 0.5rem;
        align-self: center;
    }

    .step-content {
        flex: none;
    }

    .step-title {
        font-size: 0.8rem;
        line-height: 1.2;
    }

    .step-link:hover {
        transform: translateY(-2px);
    }
}

/* Mobile Progress Tracker (Vertical) */
@media (max-width: 767px) {
    .progress-steps-container {
        display: block;
    }

    .step-item {
        flex-direction: row;
        text-align: left;
        margin-bottom: 0.75rem;
    }

        .step-item:not(:last-child)::after {
            display: none;
        }

    .step-number {
        margin-right: 0.75rem;
        margin-bottom: 0;
    }

    .step-content {
        flex: 1;
    }

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

    .step-link:hover {
        transform: translateX(3px);
    }
}


.btn-success {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    border: none;
}

    .btn-success:hover {
        transform: translateY(-1px);
        box-shadow: 0 3px 10px rgba(46, 204, 113, 0.4);
    }

.btn-danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border: none;
}

    .btn-danger:hover {
        transform: translateY(-1px);
        box-shadow: 0 3px 10px rgba(231, 76, 60, 0.4);
    }

.btn-info {
    background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%);
    border: none;
}

    .btn-info:hover {
        transform: translateY(-1px);
        box-shadow: 0 3px 10px rgba(26, 188, 156, 0.4);
    }

.btn-warning {
    background: linear-gradient(135deg, #f39c12 0%, #d35400 100%);
    border: none;
    color: #212529;
}

    .btn-warning:hover {
        transform: translateY(-1px);
        box-shadow: 0 3px 10px rgba(243, 156, 18, 0.4);
        color: #212529;
    }

.hover-scale {
    transition: transform 0.2s, color 0.2s;
    display: inline-block;
}
.hover-scale:hover {
    transform: scale(1.2);
    color: var(--bs-primary) !important;
}

/* Dark mode adaptation */
@media (prefers-color-scheme: dark) {
    footer {
        background-color: var(--bs-dark-bg-subtle) !important;
        border-color: var(--bs-dark-border-subtle) !important;
    }
    .text-dark-emphasis {
        color: var(--bs-light-text-emphasis) !important;
    }
    .text-body-secondary {
        color: var(--bs-secondary-color) !important;
    }
    .border-body-secondary {
        border-color: var(--bs-secondary-color) !important;
    }
}