/* Navbar V3 - Black & Green Theme with Light/Dark Mode */

/* Color Variables - Dark Mode (Default) */
:root {
    --navbar-v3-bg: #1A1A1A;
    --navbar-v3-text: #ffffff;
    --navbar-v3-green: #00FD54;
    --navbar-v3-hover: rgba(0, 253, 84, 0.1);
    --navbar-v3-btn-bg: rgba(0, 253, 84, 0.2);
    --navbar-v3-btn-hover: rgba(0, 253, 84, 0.3);
    --navbar-v3-subtitle: #E5E7EB;
}

/* Light Theme - White with Black & Green accents */
:root.light-theme {
    --navbar-v3-bg: #ffffff;
    --navbar-v3-text: #1a1a1a;
    --navbar-v3-green: #00c043;
    --navbar-v3-hover: rgba(0, 253, 84, 0.08);
    --navbar-v3-btn-bg: rgba(0, 253, 84, 0.1);
    --navbar-v3-btn-hover: rgba(0, 253, 84, 0.15);
    --navbar-v3-subtitle: #4B5563;
}

.navbar-v3 {
    width: 100%;
    background: linear-gradient(to bottom, var(--navbar-v3-bg));
    padding: 14px 36px;
    border-bottom: 1px solid rgba(0, 253, 84, 0.2);
    box-shadow: 0 2px 8px rgba(0, 253, 84, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 80;
}

/* Botões redondos */
.navbar-v3-circle-btn {
    width: 44px;
    height: 44px;
    background: var(--navbar-v3-btn-bg);
    border-radius: 14px;
    border: 1px solid rgba(0, 253, 84, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--navbar-v3-green);
    cursor: pointer;
    transition: all 0.2s ease;
}

.navbar-v3-circle-btn:hover {
    background: var(--navbar-v3-btn-hover);
    border-color: var(--navbar-v3-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 253, 84, 0.2);
}

/* Theme Toggle Switch */
.navbar-v3-theme-toggle {
    display: flex;
    align-items: center;
}

.theme-toggle-checkbox {
    display: none;
}

.theme-toggle-label {
    position: relative;
    width: 60px;
    height: 30px;
    background: var(--navbar-v3-btn-bg);
    border-radius: 15px;
    border: 1px solid rgba(0, 253, 84, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
    transition: all 0.3s ease;
}

.theme-toggle-label:hover {
    border-color: var(--navbar-v3-green);
    box-shadow: 0 4px 12px rgba(0, 253, 84, 0.2);
}

.theme-icon-sun,
.theme-icon-moon {
    font-size: 14px;
    z-index: 1;
    transition: all 0.3s ease;
}

.theme-icon-sun {
    color: var(--navbar-v3-green);
}

.theme-icon-moon {
    color: rgba(255, 255, 255, 0.4);
}

.theme-toggle-slider {
    position: absolute;
    width: 24px;
    height: 24px;
    background: var(--navbar-v3-green);
    border-radius: 50%;
    left: 3px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Checked state (Light theme) */
.theme-toggle-checkbox:checked+.theme-toggle-label .theme-toggle-slider {
    left: 33px;
}

.theme-toggle-checkbox:checked+.theme-toggle-label .theme-icon-sun {
    color: rgba(0, 0, 0, 0.4);
}

.theme-toggle-checkbox:checked+.theme-toggle-label .theme-icon-moon {
    color: var(--navbar-v3-green);
}

/* Regra específica para desativar hover padrão no botão de logout */
#logout-form .navbar-v3-circle-btn:hover {
    background: transparent;
}

/* Títulos à esquerda */
.navbar-v3-page-info {
    display: flex;
    flex-direction: column;
    margin-left: 16px;
    flex: 1;
}

.navbar-v3-title {
    font-family: Poppins, sans-serif;
    font-size: 20px;
    color: var(--navbar-v3-green);
    font-weight: 600;
    text-shadow: 0 0 10px rgba(0, 253, 84, 0.3);
}

.navbar-v3-subtitle {
    font-family: Arimo, sans-serif;
    font-size: 14px;
    color: var(--navbar-v3-subtitle);
    margin-top: -2px;
}

/* Lado direito */
.navbar-v3-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

/* Avatar */
.navbar-v3-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-v3-avatar {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(180deg, rgba(0, 253, 84, 0.2), rgba(0, 253, 84, 0.1));
    border: 2px solid rgba(0, 253, 84, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-v3-avatar img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 14px;
}

/* Status verde */
.navbar-v3-status {
    width: 12px;
    height: 12px;
    background: var(--navbar-v3-green);
    border-radius: 50%;
    position: absolute;
    right: -2px;
    bottom: -2px;
    border: 2px solid var(--navbar-v3-bg);
    box-shadow: 0 0 8px var(--navbar-v3-green);
}

/* Nome + função */
.navbar-v3-user-name {
    font-family: Poppins, sans-serif;
    font-size: 14px;
    color: var(--navbar-v3-text);
    font-weight: 500;
}

.navbar-v3-user-role {
    font-family: Poppins, sans-serif;
    font-size: 12px;
    color: var(--navbar-v3-subtitle);
    margin-top: -2px;
}

/* Logout */
.navbar-v3-footer {
    display: flex;
    align-items: center;
}

.logout-btn i {
    color: var(--navbar-v3-green);
}

.logout-btn:hover i {
    color: #fff !important;
}

/* Hover effect ajustado para o botão de logout */
#logout-form .navbar-v3-circle-btn:hover {
    background: linear-gradient(to right, #FF0000 0%, #990000 100%);
    transition: background 0.3s ease;
    border-radius: 14px;
    border: 1px solid #FF0000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
}

#logout-form:hover .text-white {
    color: white !important;
}

/* Theme toggle icons transition */
.theme-icon-light,
.theme-icon-dark {
    transition: all 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar-v3 {
        padding: 12px 20px;
    }

    .navbar-v3-title {
        font-size: 18px;
    }

    .navbar-v3-subtitle {
        font-size: 12px;
    }

    .navbar-v3-user-info {
        display: none;
    }

    .navbar-v3-right {
        gap: 12px;
    }

    .navbar-v3-circle-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}