/* Styles spécifiques à la page de calcul de salaire intégrée dans Modisna */

#page-calcul-salaire {
    padding: 2rem;
    color: var(--text-primary);
    position: relative;
    min-height: calc(100vh - 60px);
    background: #f8fafc;
}

#page-calcul-salaire .salaire-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 1;
    position: relative;
}

#page-calcul-salaire .salaire-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 1;
    position: relative;
}

#page-calcul-salaire header {
    text-align: center;
    margin-bottom: 2.5rem;
}

#page-calcul-salaire header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

#page-calcul-salaire header p {
    color: #64748b;
    font-size: 1.1rem;
}

#page-calcul-salaire .grid-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
}

@media (max-width: 900px) {
    #page-calcul-salaire .grid-container {
        grid-template-columns: 1fr;
    }
}

/* White Panels */
#page-calcul-salaire .glass-panel {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#page-calcul-salaire .glass-panel:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

#page-calcul-salaire h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
}

#page-calcul-salaire .form-group-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

#page-calcul-salaire .form-group {
    flex: 1;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
}

#page-calcul-salaire .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #475569;
    font-weight: 500;
}

#page-calcul-salaire .form-input {
    width: 100%;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #1e293b;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s;
    font-family: inherit;
}

#page-calcul-salaire .form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: #ffffff;
}

/* Stats Grid */
#page-calcul-salaire .stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

#page-calcul-salaire .stat-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.3s ease;
}

#page-calcul-salaire .stat-card:hover { border-color: #cbd5e1; }
#page-calcul-salaire .stat-label { font-size: 0.85rem; color: #64748b; margin-bottom: 0.5rem; }
#page-calcul-salaire .stat-value { font-size: 1.5rem; font-weight: 700; color: #1e293b; }
#page-calcul-salaire .highlight-green .stat-value { color: #10b981; }
#page-calcul-salaire .highlight-red .stat-value { color: #ef4444; }

/* Financial Details */
#page-calcul-salaire .financial-details {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

#page-calcul-salaire .detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px dashed #cbd5e1;
    font-size: 1rem;
    color: #334155;
}

#page-calcul-salaire .detail-row:last-child { border-bottom: none; }
#page-calcul-salaire .amount { font-weight: 600; }
#page-calcul-salaire .positive { color: #10b981; }
#page-calcul-salaire .negative { color: #ef4444; }

/* Final Salary */
#page-calcul-salaire .final-salary-box {
    margin-top: 2rem;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.3);
    color: white;
}

#page-calcul-salaire .final-salary-box h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: none;
    padding-bottom: 0;
}

#page-calcul-salaire .final-amount {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 4px 15px rgba(59, 130, 246, 0.5);
    letter-spacing: -1px;
}

.loader-container {
    display: none;
    text-align: center;
    padding: 2rem;
    color: #94a3b8;
}

.loader-container i {
    font-size: 2rem;
    color: #3b82f6;
    margin-bottom: 1rem;
}
