/* ===========================================
   CALCULADORA DE SALÁRIO LÍQUIDO - STYLES
   Tema: Verde Financeiro (#27ae60)
   Design: Glassmorphism + Vapor Theme
   =========================================== */

:root {
    --primary-green: #27ae60;
    --primary-green-dark: #1e8449;
    --primary-green-light: #2ecc71;
    --glass-bg: rgba(39, 174, 96, 0.05);
    --glass-border: rgba(39, 174, 96, 0.2);
    --success-glow: 0 0 20px rgba(39, 174, 96, 0.3);
}

/* ============ Ícone Principal ============ */
.calculator-icon {
    font-size: 4rem;
    color: var(--primary-green);
    animation: float 3s ease-in-out infinite;
    text-shadow: var(--success-glow);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ============ Cards Glassmorphism ============ */
.glass-effect {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.glass-effect:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--glass-border);
    transform: translateY(-2px);
    box-shadow: var(--success-glow);
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

/* ============ Formulário ============ */
.form-control,
.form-select {
    background: rgba(39, 174, 96, 0.05);
    border: 1px solid rgba(39, 174, 96, 0.2);
    color: #fff;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    background: rgba(39, 174, 96, 0.1);
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.25rem rgba(39, 174, 96, 0.25);
    color: #fff;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-label {
    color: var(--primary-green-light);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

/* ============ Botões ============ */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-green-light), var(--primary-green));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.5);
}

.btn-primary:active {
    transform: translateY(0);
}

/* ============ Resultados ============ */
#results-container {
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card Principal - Salário Líquido */
.result-card-main {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(39, 174, 96, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(39, 174, 96, 0.4);
    }
    50% {
        box-shadow: 0 10px 40px rgba(39, 174, 96, 0.6);
    }
}

.result-card-main .result-label {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
}

.result-card-main .result-value {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    margin: 1rem 0;
}

.result-card-main .result-subtitle {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Cards Secundários */
.result-card {
    background: rgba(39, 174, 96, 0.08);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.result-card:hover {
    background: rgba(39, 174, 96, 0.12);
    border-color: var(--primary-green);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3);
}

.result-card .result-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.result-card .result-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.5rem;
}

.result-card .result-value-small {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-green-light);
}

/* ============ Gráfico ============ */
.chart-container {
    position: relative;
    height: 300px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 1rem;
}

/* ============ Tabela Personalizada ============ */
.custom-table {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    overflow: hidden;
}

.custom-table thead {
    background: rgba(39, 174, 96, 0.15);
}

.custom-table thead th {
    color: var(--primary-green-light);
    font-weight: 600;
    border: none;
    padding: 1rem;
}

.custom-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s ease;
}

.custom-table tbody tr:hover {
    background: rgba(39, 174, 96, 0.08);
}

.custom-table td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
    border: none;
}

.custom-table tfoot {
    background: rgba(39, 174, 96, 0.2);
}

.custom-table tfoot td {
    padding: 1rem;
    font-size: 1.1rem;
}

/* ============ Sidebar - Info Tables ============ */
.info-table {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 1rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.info-row:last-child {
    border-bottom: none;
}

.info-row span:first-child {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

.info-row .badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.65rem;
}

/* ============ Badges Customizados ============ */
.badge.bg-success {
    background: var(--primary-green) !important;
}

.badge.bg-info {
    background: #3498db !important;
}

.badge.bg-warning {
    background: #f39c12 !important;
}

.badge.bg-danger {
    background: #e74c3c !important;
}

.badge.bg-secondary {
    background: #95a5a6 !important;
}

/* ============ Lista de Dicas ============ */
.tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tips-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.tips-list li:last-child {
    border-bottom: none;
}

.tips-list strong {
    color: var(--primary-green-light);
}

/* ============ Seção Informativa ============ */
.text-primary-custom {
    color: var(--primary-green-light) !important;
}

.alert-info {
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.3);
    color: #3498db;
}

.alert-info code {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.2rem 0.5rem;
    border-radius: 5px;
    color: var(--primary-green-light);
    font-size: 0.9rem;
}

/* ============ Breadcrumb ============ */
.breadcrumb {
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 0;
}

.breadcrumb-item a {
    color: var(--primary-green-light);
    transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
    color: var(--primary-green);
}

.breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.6);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.3);
}

/* ============ Responsividade ============ */

/* Tablets */
@media (max-width: 992px) {
    .calculator-icon {
        font-size: 3rem;
    }

    .result-card-main .result-value {
        font-size: 2.5rem;
    }

    .chart-container {
        height: 250px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .calculator-icon {
        font-size: 2.5rem;
    }

    .display-4 {
        font-size: 2rem;
    }

    .lead {
        font-size: 1rem;
    }

    .result-card-main {
        padding: 1.5rem;
    }

    .result-card-main .result-value {
        font-size: 2rem;
    }

    .result-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .chart-container {
        height: 200px;
    }

    .btn-primary {
        padding: 0.65rem 1.5rem;
        font-size: 0.9rem;
    }

    .info-row span:first-child {
        font-size: 0.8rem;
    }

    .custom-table {
        font-size: 0.875rem;
    }

    .custom-table thead th,
    .custom-table td {
        padding: 0.5rem;
    }
}

/* Mobile Pequeno */
@media (max-width: 576px) {
    .calculator-icon {
        font-size: 2rem;
    }

    .display-4 {
        font-size: 1.75rem;
    }

    .result-card-main .result-value {
        font-size: 1.75rem;
    }

    .result-card .result-value-small {
        font-size: 1.25rem;
    }

    .chart-container {
        height: 180px;
    }

    h2.h4 {
        font-size: 1.25rem;
    }

    h3.h6 {
        font-size: 1rem;
    }
}

/* ============ Animações de Carregamento ============ */
.loading {
    opacity: 0.5;
    pointer-events: none;
}

.loading::after {
    content: "⏳";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ============ Print Styles ============ */
@media print {
    .btn, .navbar, .footer, .breadcrumb {
        display: none !important;
    }

    .glass-effect {
        background: white;
        border: 1px solid #ddd;
    }

    .result-card-main {
        background: white;
        color: black;
    }
}
