﻿/* Navbar Container */
.navbar {
    background-color: #2C3E50;
    border-radius: 6px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.6);
    width: 96%;
    margin-left: 40px;
    margin-top: 7px;
    height: 50px;
    margin-bottom: 10px;
    position: fixed;
    top: 0;
    z-index: 1050;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

/* Brand Title */
.navbar-brand {
    font-size: 18px;
    font-weight: bold;
}

/* Centered User Info */
.navbar-center-section {
    display: flex;
    align-items: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* Right Side: Logout + Back buttons (no gap) */
.navbar-buttons-right {
    position: absolute;
    right: 20px;
    display: flex;
    align-items: center;
    /* removed gap */
}

/* User Greeting */
.user-greeting {
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
}

/* Common Button Style */
.camco-btn-md {
    height: 38px;
    padding: 6px 14px;
    border: 2px solid white; /* white border added */
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s, opacity 0.3s;
    margin-left: 4px; /* keeps buttons tight but slightly spaced */
}

/* Specific Button Colors */
.btn-logout-custom {
    background-color: #dc3545;
    color: white;
}

.btn-login-custom {
    background-color: #0d6efd;
    color: white;
}

.btn-back-custom {
    background-color: #6c757d;
    color: white;
}

.camco-btn-md:hover {
    opacity: 0.9;
}

/* Toaster */
.toaster-class {
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    background-color: #333;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    display: block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    max-width: 90%;
    text-align: center;
    font-size: 0.95rem;
    animation: fadeIn 0.3s ease-in-out;
}

    .toaster-class.fade-out {
        animation: fadeOut 1s forwards;
    }

@keyframes fadeOut {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}
