* {
    font-family: "IBM Plex Sans", sans-serif;
}

nav {
    display: flex;
    background: var(--primary-color);
    position: relative;
    z-index: 5;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

ul {
    display: flex;
    gap: 4rem;
}

a.nav-link {
    font-weight: 500;
    color: white !important;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    position: relative;
}

a.nav-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
    transform: scale(1.05);
}

a.nav-link.active {
    font-weight: 600;
}

.collapse {
    font-size: 1rem;
}

.layout-nav .navbar-nav {
    display: flex;
    justify-content: flex-end;
    padding-right: 3rem;
}

.navbar-brand img {
    height: 7rem;
    width: 7rem;
    transition: all 0.4s ease;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}

.navbar-brand img:hover {
    transform: scale(1.08);
    filter: drop-shadow(0 8px 20px rgba(255, 255, 255, 0.3));
}

.navbar-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 1rem;
}

.navbar-text * {
    margin: 0;
    color: white;
}

.navbar-text h4 {
    font-size: 1rem;
}

.navbar-text h2 {
    font-size: 1.3rem;
}

hr {
    background-color: white;
    height: .2rem;
}

.user-icon-container {
    display: flex;
    align-items: center;
    margin-top: 1rem;
    position: relative;
}

.user-icon-btn {
    background: none;
    border: none;
    color: var(--tertiary-color);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-icon-btn:hover {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 207, 1, 0.5);
    transform: scale(1.1);
}

.user-icon-btn::after {
    content: '▼';
    margin-left: 0.5rem;
    font-size: 0.7rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

.user-icon-btn.active::after {
    transform: rotate(180deg);
}

.admin_action {
    width: 15rem;
    position: absolute;
    top: 2.8rem;
    display: none;
    flex-direction: column;
    background: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    border: 1px solid rgba(32, 36, 108, 0.1);
}

.admin_action.active {
    display: flex;
    animation: dropDown 0.3s ease;
}

.admin_action button {
    text-decoration: none;
    border: none;
    background: white;
    padding: 0.75rem 1rem;
    text-align: left;
    transition: all 0.3s ease;
    color: var(--primary-color);
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.admin-name-display {
    padding: 0.75rem 1rem;
    background: var(--primary-color);
    border-bottom: 1px solid rgba(32, 36, 108, 0.2);
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.admin-logged-in-name {
    margin: 0;
    color: var(--tertiary-color);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.admin_action button::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--tertiary-color);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.admin_action button:hover {
    background: linear-gradient(90deg, rgba(255, 207, 1, 0.1), transparent);
    color: var(--primary-color);
    padding-left: 1.25rem;
}

.admin_action button:hover::before {
    transform: scaleY(1);
}

.admin_action button:active {
    background: rgba(255, 207, 1, 0.2);
}

@keyframes dropDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notif {
    position: absolute;
    display: none;
    top: 10rem;
    text-align: center;
    z-index: 11;
    gap: 1rem;
    background: rgb(213, 223, 229, 0.7);
    justify-content: center;
    align-items: center;
    border-radius: .5rem;
    padding: .5rem .5rem .3rem .5rem;
    transition: left 0.5s ease-in-out, opacity 0.5s ease-in-out;
    opacity: 1;
}

.notif img {
    height: 2rem;
    width: 2rem;
}

.notif h1 {
    font-size: 1.5rem;
}

.notif.active {
    display: flex;
    position: absolute;
    left: 50%;
    transform: translate(-50%, -45%);
    opacity: 1;
    padding: 1.5rem 3rem;
}

/* Floating process button (bottom-right) */
.process-fab {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1080; /* above nav and modals backdrop */
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: var(--tertiary-color);
    border: none;
    box-shadow: 0 6px 18px rgba(32,36,108,0.3);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    font-size: 1.25rem;
}

.process-fab:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(32,36,108,0.35);
}

.process-fab:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(32,36,108,0.12);
}

.step-badge i {
    color: var(--tertiary-color) !important;
}

.step-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 1.4rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(29, 36, 103, 0.2);
}

.step-item {
    transition: all 0.3s ease;
}

.step-item:hover {
    padding-left: 1rem;
    background: rgba(29, 36, 103, 0.02);
    border-radius: 8px;
}

.process-steps .step-item:last-child {
    border-bottom: none !important;
}

.modal-content {
    border: none;
    border-radius: 1.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    border-bottom: 2px solid #e8ecf8;
}

.modal-title {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.4rem;
}

.modal-body {
    padding: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
}

.badge {
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
}

.badge i {
    margin-right: 0.4rem;
}

.step-item h6 {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
}

.step-item p {
    color: #6b7280;
    line-height: 1.6;
    font-size: 0.95rem;
}

.modal-footer {
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    border-top: 2px solid #e8ecf8;
}

.btn-secondary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(29, 36, 103, 0.3);
}

@media (max-width: 991px) {
    nav {
        width: 100%;
        flex-wrap: wrap;
        align-items: center;
        min-height: auto !important;
        position: relative;
    }

    .nav-container {
        width: 100% !important;
        flex-wrap: nowrap !important;
        padding: 0.75rem 1rem !important;
        align-items: center !important;
        min-height: auto !important;
    }

    .navbar-logo {
        margin-left: 0 !important;
        align-items: center;
        flex-shrink: 0;
    }

    .navbar-brand {
        display: flex;
        align-items: center;
        margin: 0 !important;
        padding: 0 !important;
    }

    .navbar-brand img {
        height: 3.5rem !important;
        width: 3.5rem !important;
        flex-shrink: 0;
    }

    .navbar-text {
        display: none !important;
    }

    .user-icon-container {
        display: none !important;
    }

    .navbar-toggler {
        border: 2px solid rgba(255, 255, 255, 0.5);
        border-radius: 0.5rem;
        padding: 0.5rem;
        transition: all 0.3s ease;
        margin: 0 !important;
        flex-shrink: 0;
    }

    .navbar-toggler:hover {
        border-color: rgba(255, 255, 255, 0.9);
        background-color: rgba(255, 255, 255, 0.1);
    }

    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.3);
    }

    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml;charset=utf8,%3Csvg%20viewBox%3D%270%200%2030%2030%27%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%3E%3Cpath%20stroke%3D%27white%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-miterlimit%3D%2710%27%20d%3D%27M4%207h22M4%2015h22M4%2023h22%27/%3E%3C/svg%3E") !important;
        position: relative;
        top: 0;
        width: 1.5rem;
        height: 1.5rem;
    }

    .navbar-collapse {
        position: absolute !important;
        top: 100%;
        left: 0;
        display: flex;
        gap: 1rem;
        flex-direction: column;
        align-items: flex-start !important;
        background: rgba(32, 36, 108, 0.98);
        margin: 0 !important;
        padding: 1.5rem;
        width: 100% !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        animation: slideDown 0.3s ease;
        z-index: 1000;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .navbar-nav {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem !important;
    }

    .nav-item {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 0.5rem 0;
        transition: all 0.3s ease;
    }

    .nav-item:last-child {
        border-bottom: none;
    }

    .nav-item:hover {
        background-color: rgba(255, 255, 255, 0.1);
        padding-left: 0.5rem;
        border-radius: 0.5rem;
    }

    .nav-link {
        padding: 0.75rem 1rem !important;
        transition: all 0.3s ease;
        font-size: 1rem !important;
    }

    .nav-link:hover {
        color: rgba(255, 255, 255, 0.8) !important;
        transform: translateX(5px);
    }

    .nav-link.active {
        font-weight: 600;
    }

    #navbarNav ul {
        margin: 1.5rem 0;
        gap: 0.5rem;
    }

    .admin_action.active {
        top: 5rem;
    }

    .notif {
        top: 6rem !important;
        max-width: 90%;
        left: 50%;
        transform: translateX(-50%);
    }

    .notif.active {
        top: 6rem !important;
        padding: 0.75rem 1rem;
    }

    .notif h1 {
        font-size: 0.85rem;
    }

    .notif img {
        height: 1.25rem;
        width: 1.25rem;
    }
}

@media(max-width: 768px) {
    .nav-container {
        width: 100% !important;
        display: flex;
        margin: 0 !important;
        padding: 0.75rem 0.5rem !important;
        justify-content: space-between;
    }

    .navbar-brand img {
        height: 3rem !important;
        width: 3rem !important;
    }

    .navbar-toggler {
        padding: 0.4rem !important;
    }

    .navbar-toggler-icon {
        width: 1.25rem !important;
        height: 1.25rem !important;
    }

    .navbar-collapse {
        margin: 0.75rem 0 0 0 !important;
        padding: 1rem !important;
    }

    .notif {
        top: 5rem !important;
    }

    .notif.active {
        top: 5rem !important;
        padding: 0.5rem 0.75rem;
    }

    .notif h1 {
        font-size: 0.75rem;
    }

    .notif img {
        height: 1rem;
        width: 1rem;
    }

    .admin_action.active {
        top: 4.5rem;
    }
}

@media(max-width: 500px) {
    .navbar-text {
        display: none;
    }

    .nav-container {
        padding: 0.5rem !important;
    }

    .navbar-brand img {
        height: 2.5rem !important;
        width: 2.5rem !important;
    }

    .navbar-toggler {
        padding: 0.3rem !important;
    }

    .navbar-toggler-icon {
        width: 1rem !important;
        height: 1rem !important;
    }

    .navbar-collapse {
        padding: 0.75rem !important;
    }

    .nav-link {
        font-size: 0.9rem !important;
        padding: 0.5rem 0.75rem !important;
    }

    .notif {
        top: 4rem !important;
    }

    .notif.active {
        top: 4rem !important;
        padding: 0.4rem 0.6rem;
    }

    .notif h1 {
        font-size: 0.7rem;
    }

    .notif img {
        height: 0.9rem;
        width: 0.9rem;
    }

    .admin_action.active {
        top: 4rem;
        width: 12rem;
    }

    .admin_action button {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .modal-body {
        padding: 1.5rem;
    }

    .step-badge {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .step-item h6 {
        font-size: 1rem;
    }

    .step-item p {
        font-size: 0.9rem;
    }
}
