/* MAPLAY 통합 Navigation Bar 스타일 */

.maplay-nav {
    background: #343a40 !important;
    color: white;
    padding: 10px 20px;
    font-size: 16px;
    /* Increased base font size */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.maplay-nav .container-fluid {
    /* Limit max width if dashboard does, otherwise full width */
}

/* Brand/Logo Style */
/* Brand/Logo Style */
.navbar-brand {
    font-size: 1.5rem;
    /* Matches h1 size in dashboard */
    font-weight: bold;
    color: #ffffff !important;
    /* White color for better contrast */
    padding: 5px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    /* Enhancing readability */
    transition: all 0.3s ease;
}

.brand-icon {
    height: 40px;
    /* Adjust height to match dashboard icon size */
    width: auto;
}

/* Override default link color for brand if needed */
.navbar-brand:hover {
    color: #f1f1f1 !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    transform: scale(1.02);
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 10px 15px;
    transition: all 0.3s ease;
    font-weight: 600;
    /* Slightly bolder */
    font-size: 1.15rem;
    /* increased font size */
}

.navbar-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff !important;
    border-radius: 5px;
}

.navbar-nav .nav-link.active {
    background: rgba(52, 152, 219, 0.4);
    color: #fff !important;
    border-radius: 5px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 15px;
    /* Removed dark background for user info to match dashboard look more closely, or keeping it subtle */
    /* background: rgba(0, 0, 0, 0.2); */
    border-radius: 20px;
    margin-right: 15px;
    text-decoration: none !important;
    /* Ensure no underline on the container */
}

/* Force person icon to be white */
.user-info .bi-person-circle {
    color: #fff !important;
    font-size: 1.2rem;
    /* Optional: Adjust size if needed, ensuring visibility */
}

.user-email {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none !important;
    border-bottom: none !important;
}

/* Grade Badges (A, B, C) */
.badge-grade {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    color: white;
    font-size: 0.85rem;
    font-weight: bold;
    margin-left: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
}

.grade-A {
    background-color: #27ae60;
    /* Green */
}

.grade-B {
    background-color: #f39c12;
    /* Orange-Yellow */
}

.grade-C {
    background-color: #d35400;
    /* Dark Orange/Red-ish */
}

/* Logout Button */
.btn-logout {
    background: #6c757d;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 5px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-logout:hover {
    background: #5a6268;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
}

.dropdown-menu {
    background: #34495e;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-item {
    color: rgba(255, 255, 255, 0.9);
    padding: 8px 20px;
}

.dropdown-item:hover {
    background: rgba(52, 152, 219, 0.5);
    color: #fff;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Badges */
.badge-level-ma {
    background-color: #ff6b81;
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-left: 5px;
}

.badge-role-admin {
    background-color: #ff9ff3;
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-left: 5px;
}

/* Mobile Adjustments */
@media (max-width: 991px) {
    .user-info {
        margin-bottom: 10px;
        margin-right: 0;
        justify-content: center;
        flex-wrap: wrap;
    }

    .btn-logout {
        width: 100%;
        margin-top: 5px;
    }
}