/* Tema Claro Empresarial - Cores Pastéis */
/* Aplicado quando a classe 'theme-light' está presente no body */

/* Reset e Base para Tema Claro */
.theme-light {
    background: linear-gradient(-45deg, #f8f9fa, #e9ecef, #f1f3f4, #e3f2fd, #f3e5f5) !important;
    background-size: 400% 400%;
    animation: gradientShiftLight 20s ease infinite;
    min-height: 100vh;
    margin: 0;
    padding: 0 0 0px 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #2c3e50 !important;
}

@keyframes gradientShiftLight {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Elementos Flutuantes de Fundo - Tema Claro */
.theme-light .background-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.theme-light .floating-element {
    position: absolute;
    color: rgba(33, 150, 243, 0.15);
    font-size: 1.5rem;
    animation: floatAroundLight 25s ease-in-out infinite;
}

.theme-light .floating-element:nth-child(1) {
    top: 15%;
    left: 8%;
}

.theme-light .floating-element:nth-child(2) {
    top: 35%;
    left: 85%;
}

.theme-light .floating-element:nth-child(3) {
    top: 65%;
    left: 12%;
}

.theme-light .floating-element:nth-child(4) {
    top: 80%;
    left: 75%;
}

.theme-light .floating-element:nth-child(5) {
    top: 25%;
    left: 50%;
}

.theme-light .floating-element:nth-child(6) {
    top: 55%;
    left: 90%;
}

.theme-light .floating-element:nth-child(7) {
    top: 75%;
    left: 25%;
}

.theme-light .floating-element:nth-child(8) {
    top: 45%;
    left: 5%;
}

@keyframes floatAroundLight {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
        opacity: 0.3; 
    }
    25% { 
        transform: translateY(-25px) rotate(10deg); 
        opacity: 0.4; 
    }
    50% { 
        transform: translateY(-15px) rotate(-5deg); 
        opacity: 0.35; 
    }
    75% { 
        transform: translateY(-35px) rotate(15deg); 
        opacity: 0.45; 
    }
}

/* Navbar para Tema Claro - SOBRESCREVER BOOTSTRAP */
.theme-light .navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(33, 150, 243, 0.2) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 0.25rem 0 !important;
    position: sticky;
    top: 0;
    z-index: 1050;
    min-height: 45px !important;
}

/* SOBRESCREVER BOOTSTRAP - Estilos mais específicos para tema claro */
.theme-light body .navbar {
    padding: 0.25rem 0 !important;
    min-height: 45px !important;
}

.theme-light body .navbar.compact-navbar {
    padding: 0.2rem 0 !important;
    min-height: 40px !important;
}

/* FORÇAR SOBRESCREVER - Estilos ainda mais específicos para tema claro */
.theme-light html body .navbar {
    padding: 0.25rem 0 !important;
    min-height: 45px !important;
}

.theme-light html body .navbar.compact-navbar {
    padding: 0.2rem 0 !important;
    min-height: 40px !important;
}

/* SOBRESCREVER BOOTSTRAP - Especificidade máxima para tema claro */
.theme-light html body .navbar.navbar-expand-lg {
    padding: 0.25rem 0 !important;
    min-height: 45px !important;
}

.theme-light html body .navbar.navbar-expand-lg.compact-navbar {
    padding: 0.2rem 0 !important;
    min-height: 40px !important;
}

/* SOBRESCREVER BOOTSTRAP - Especificidade ainda maior para tema claro */
.theme-light html body .navbar.navbar-expand-lg.navbar-light {
    padding: 0.25rem 0 !important;
    min-height: 45px !important;
}

.theme-light html body .navbar.navbar-expand-lg.navbar-light.compact-navbar {
    padding: 0.2rem 0 !important;
    min-height: 40px !important;
}

/* Navbar Compacta para Tema Claro - Mesmo tamanho do tema escuro */
.theme-light .navbar.compact-navbar {
    padding: 0.2rem 0 !important;
    min-height: 40px !important;
}

.theme-light .navbar.compact-navbar .navbar-brand {
    padding: 0.2rem 0 !important;
    margin-right: 1rem !important;
}

.theme-light .navbar.compact-navbar .navbar-nav .nav-link {
    padding: 0.4rem 0.8rem !important;
    margin: 0 0.3rem !important;
    border-radius: 6px !important;
    transition: all 0.2s ease !important;
    font-size: 1rem !important;
}

.theme-light .navbar.compact-navbar .nav-link i {
    font-size: 1.1rem !important;
    margin-right: 0.5rem !important;
}

.theme-light .navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(33, 150, 243, 0.05) 0%, 
        rgba(156, 39, 176, 0.03) 50%, 
        rgba(76, 175, 80, 0.05) 100%);
    pointer-events: none;
}

.theme-light .navbar .navbar-brand {
    color: #1976d2 !important;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0;
    margin-right: 1.5rem;
}

.theme-light .navbar .navbar-brand:hover {
    color: #42a5f5 !important;
}

.theme-light .navbar .navbar-brand img {
    height: 32px;
    width: auto;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.theme-light .navbar .navbar-brand:hover img {
    transform: scale(1.08) rotate(2deg);
    
}

/* Navbar Toggle para Tema Claro */
.theme-light .navbar-toggler {
    border: 2px solid rgba(33, 150, 243, 0.3) !important;
    border-radius: 12px !important;
    padding: 0.5rem 0.8rem !important;
    transition: all 0.3s ease;
}

.theme-light .navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.2) !important;
}

.theme-light .navbar-toggler:hover {
    background: rgba(33, 150, 243, 0.1) !important;
    transform: translateY(-1px);
}

/* Nav Links para Tema Claro */
.theme-light .navbar .nav-link {
    color: #546e7a !important;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.4rem 0.8rem !important;
    border-radius: 15px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0 0.5rem;
    position: relative;
    backdrop-filter: blur(10px);
}

.theme-light .navbar .nav-link i {
    font-size: 1.1rem;
    margin-right: 0.5rem !important;
}

.theme-light .navbar .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(33, 150, 243, 0.15), 
        rgba(156, 39, 176, 0.1));
    border-radius: 15px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.theme-light .navbar .nav-link:hover, 
.theme-light .navbar .nav-link:focus, 
.theme-light .navbar .nav-link.active {
    color: #1976d2 !important;
    background: rgba(33, 150, 243, 0.1);
}

.theme-light .navbar .nav-link:hover::before {
    opacity: 1;
    transform: scale(1);
}

/* Dropdown para Tema Claro */
.theme-light .dropdown-menu {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(33, 150, 243, 0.25) !important;
    border-radius: 12px !important;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(33, 150, 243, 0.1);
    padding: 0.5rem 0;
    margin-top: 0.4rem;
    z-index: 9999 !important;
    min-width: 180px;
}

.theme-light .dropdown-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(33, 150, 243, 0.08) 0%, 
        rgba(156, 39, 176, 0.05) 50%, 
        rgba(76, 175, 80, 0.08) 100%);
    border-radius: 20px;
    z-index: -1;
}

.theme-light .dropdown-menu a {
    color: #2c3e50 !important;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
    border-radius: 8px;
    margin: 0.1rem 0.5rem;
    position: relative;
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.theme-light .dropdown-menu a i {
    font-size: 1rem;
    width: 18px;
    text-align: center;
}

.theme-light .dropdown-menu a:hover {
    background: linear-gradient(135deg, #2196f3, #42a5f5) !important;
    color: white !important;
}

.theme-light .dropdown-divider {
    border-top: 1px solid rgba(33, 150, 243, 0.15) !important;
    margin: 0.3rem 0.5rem !important;
}

/* User Panel para Tema Claro */
.theme-light .user-panel {
    background: rgba(33, 150, 243, 0.1);
    backdrop-filter: blur(15px);
    border-radius: 12px;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
    position: relative;
    border: 1px solid rgba(33, 150, 243, 0.2);
    margin-left: 1rem;
}

.theme-light .user-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(33, 150, 243, 0.1), 
        rgba(156, 39, 176, 0.08), 
        rgba(76, 175, 80, 0.1));
    border-radius: 20px;
    z-index: -1;
}

.theme-light .user-panel:hover {
    background: rgba(33, 150, 243, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.3);
}

.theme-light .dropdown-toggle {
    color: #2c3e50 !important;
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 2;
}

.theme-light .dropdown-toggle i {
    font-size: 1rem;
}

.theme-light .dropdown-toggle:hover {
    color: #1976d2 !important;
    text-decoration: none;
}

/* Footer para Tema Claro */
.theme-light .footer {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(8px);
    color: #546e7a !important;
    border-top: 1px solid rgba(33, 150, 243, 0.1) !important;
    padding: 0.08rem 0;
    margin-top: auto;
    position: relative;
    overflow: hidden;
    min-height: 18px;
}

.theme-light .footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(33, 150, 243, 0.05) 0%, 
        rgba(156, 39, 176, 0.03) 50%, 
        rgba(76, 175, 80, 0.05) 100%);
}

.theme-light .footer-compact {
    font-weight: 400;
    color: #546e7a;
    font-size: 0.72rem;
    display: flex;
    align-items: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    justify-content: center;
    line-height: 1.2;
}

.theme-light .footer-compact i {
    font-size: 0.68rem;
    margin-right: 0.3rem;
}

.theme-light .footer-compact:hover {
    color: #1976d2;
}

/* Cards para Tema Claro */
.theme-light .card, 
.theme-light .module-card {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(25px);
    border: 1px solid rgba(33, 150, 243, 0.25) !important;
    border-radius: 25px !important;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(33, 150, 243, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-light .card:hover, 
.theme-light .module-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 0 0 2px rgba(33, 150, 243, 0.2);
    border-color: rgba(33, 150, 243, 0.4) !important;
}

.theme-light .card-header {
    background: rgba(33, 150, 243, 0.12) !important;
    border-bottom: 1px solid rgba(33, 150, 243, 0.25) !important;
    border-radius: 25px 25px 0 0 !important;
    color: #2c3e50 !important;
    font-weight: 600;
    padding: 1.5rem !important;
}

.theme-light .card-body {
    color: #2c3e50 !important;
    background: transparent !important;
    padding: 2rem !important;
}

/* Formulários para Tema Claro */
.theme-light .form-control {
    background: rgba(255, 255, 255, 0.8) !important;
    border: 2px solid rgba(33, 150, 243, 0.25) !important;
    border-radius: 15px !important;
    color: #2c3e50 !important;
    padding: 0.2rem 1.2rem !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-light .form-control:focus {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: #2196f3 !important;
    box-shadow: 0 0 0 4px rgba(33, 150, 243, 0.2) !important;
    color: #2c3e50 !important;
    transform: translateY(-2px);
}

.theme-light .form-label {
    color: #546e7a !important;
    font-weight: 600;
    margin-bottom: 0.8rem !important;
}

/* Botões para Tema Claro */
.theme-light .btn-primary {
    background: linear-gradient(135deg, #2196f3, #42a5f5) !important;
    border: none !important;
    border-radius: 15px !important;
    padding: 1rem 2rem !important;
    font-weight: 600 !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.theme-light .btn-primary:hover {
    background: linear-gradient(135deg, #1976d2, #64b5f6) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 30px rgba(33, 150, 243, 0.4) !important;
}

/* Tabelas para Tema Claro */
.theme-light .table {
    color: #2c3e50 !important;
}

.theme-light .table-dark {
    background: rgba(255, 255, 255, 0.95) !important;
}

.theme-light .table-dark th, 
.theme-light .table-dark td {
    border-color: rgba(33, 150, 243, 0.25) !important;
    padding: 1rem !important;
    color: #2c3e50 !important;
}

/* Container e Main para Tema Claro - Mesmo tamanho do tema escuro - SOBRESCREVER BOOTSTRAP */
.theme-light .container-fluid {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.theme-light main {
    padding: 0.5rem 0 !important;
}

.theme-light main.py-2 {
    padding: 0.5rem 0 !important;
}

.theme-light main.pb-3 {
    padding: 1.5rem 0 !important;
}

/* SOBRESCREVER BOOTSTRAP - Estilos mais específicos para tema claro */
.theme-light body main.py-2 {
    padding: 0.5rem 0 !important;
}

.theme-light body main.pb-3 {
    padding: 1.5rem 0 !important;
}

/* Estilos específicos para Home/Index no tema claro */
.theme-light .dashboard-container {
    background: transparent !important;
}

.theme-light .dashboard-header {
    color: #2c3e50;
}

.theme-light .dashboard-title {
    color: #1976d2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.theme-light .dashboard-subtitle {
    color: #546e7a;
}

.theme-light .module-card {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.theme-light .module-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.theme-light .module-link {
    color: #2c3e50;
}

.theme-light .module-title {
    color: #1976d2;
}

.theme-light .module-description {
    color: #546e7a;
}

.theme-light .module-arrow {
    color: #546e7a;
}

.theme-light .module-card:hover .module-arrow {
    color: #2196f3;
}

/* Cores dos cards no tema claro - tons pastéis */
.theme-light .card-upload {
    --card-color: #e3f2fd;
    --card-color-light: #bbdefb;
}

.theme-light .card-download {
    --card-color: #e8f5e8;
    --card-color-light: #c8e6c9;
}

.theme-light .card-database {
    --card-color: #e1f5fe;
    --card-color-light: #b3e5fc;
}

.theme-light .card-update {
    --card-color: #f3e5f5;
    --card-color-light: #e1bee7;
}

.theme-light .card-package {
    --card-color: #fff3e0;
    --card-color-light: #ffcc02;
}

.theme-light .card-label {
    --card-color: #f1f8e9;
    --card-color-light: #dcedc8;
}

.theme-light .card-jenkins {
    --card-color: #e0f2f1;
    --card-color-light: #b2dfdb;
}

.theme-light .card-datacenter {
    --card-color: #fce4ec;
    --card-color-light: #f8bbd9;
}

.theme-light .card-config {
    --card-color: #e8eaf6;
    --card-color-light: #c5cae9;
}

.theme-light .card-hangfire {
    --card-color: #fff8e1;
    --card-color-light: #ffecb3;
}

.theme-light .card-logs {
    --card-color: #f3e5f5;
    --card-color-light: #e1bee7;
}

/* Botão de Toggle de Tema */
.theme-toggle-btn {
    background: linear-gradient(135deg, #ff9800, #ffc107) !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 0.5rem 1rem !important;
    font-weight: 600 !important;
    color: white !important;
    transition: all 0.3s ease !important;
    margin-left: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.theme-toggle-btn:hover {
    background: linear-gradient(135deg, #f57c00, #ffb300) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(255, 152, 0, 0.4) !important;
    color: white !important;
}

.theme-light .theme-toggle-btn {
    background: linear-gradient(135deg, #2196f3, #42a5f5) !important;
}

.theme-light .theme-toggle-btn:hover {
    background: linear-gradient(135deg, #1976d2, #64b5f6) !important;
    box-shadow: 0 5px 15px rgba(33, 150, 243, 0.4) !important;
}

/* Responsividade para tema claro */
@media (max-width: 991px) {
    .theme-light .navbar .navbar-brand {
        font-size: 1.3rem;
        margin-right: 1rem;
    }
    
    .theme-light .navbar .navbar-brand img {
        height: 45px;
    }
    
    .theme-light .navbar .nav-link {
        padding: 0.6rem 1rem !important;
        margin: 0.3rem 0.2rem;
    }
    
    .theme-light .user-panel {
        padding: 0.6rem 1rem;
        margin-left: 0.5rem;
    }
}

@media (max-width: 768px) {
    .theme-light .navbar .navbar-brand {
        margin-right: 0.8rem;
    }
    
    .theme-light .navbar .navbar-brand img {
        height: 40px;
    }
    
    .theme-light .footer .container {
        flex-direction: column;
        text-align: center;
    }
    
    .theme-light .floating-element {
        display: none;
    }

    .theme-light main.pb-3 {
        padding: 1.5rem 0;
    }

    .theme-light .navbar .nav-link {
        text-align: center;
    }
}

