/* This file should be saved as: style.css */

.salary-report-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.salary-report-form-container h2 {
    color: #333;
    border-bottom: 3px solid #0073aa;
    padding-bottom: 10px;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
    box-sizing: border-box;
    height: auto;
    min-height: 42px;
    line-height: 1.5;
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23333" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
    padding-right: 40px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.radio-group {
    display: flex;
    gap: 20px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
}

.radio-group input[type="radio"] {
    cursor: pointer;
}

.position-section {
    background: #f9f9f9;
    padding: 20px;
    margin: 20px 0;
    border-left: 4px solid #0073aa;
    border-radius: 4px;
}

.position-section h4 {
    margin-top: 0;
    color: #0073aa;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: #0073aa;
    color: #fff;
}

.btn-primary:hover {
    background: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
    margin-right: 10px;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

#existingEntriesSection {
    margin: 20px 0;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 4px;
}

.entries-list {
    margin-top: 20px;
}

.entry-item {
    background: #fff;
    padding: 15px;
    margin: 10px 0;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.entry-item p {
    margin: 5px 0;
}

.summary-box {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 4px;
    border: 2px solid #0073aa;
}

.summary-box h5 {
    color: #0073aa;
    margin-top: 15px;
    margin-bottom: 5px;
}

.summary-box p {
    margin: 5px 0;
}

#summarySection {
    margin-top: 30px;
}

#messageArea {
    margin-top: 20px;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #c3e6cb;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #f5c6cb;
}

/* Charts Styling */
.salary-charts-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.salary-charts-container h2 {
    text-align: center;
    color: #333;
    border-bottom: 3px solid #0073aa;
    padding-bottom: 10px;
    margin-bottom: 40px;
}

.no-data-message {
    background: #f9f9f9;
    border: 2px dashed #ddd;
    padding: 40px;
    text-align: center;
    border-radius: 8px;
    margin: 40px 0;
}

.no-data-message p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

.chart-wrapper {
    background: #fff;
    padding: 30px;
    margin: 30px 0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.chart-wrapper h3 {
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.chart-wrapper canvas {
    max-height: 400px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .salary-report-form-container,
    .salary-charts-container {
        padding: 15px;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .position-section {
        padding: 15px;
    }
    
    .chart-wrapper {
        padding: 15px;
    }
}
