/**
 * VLS Kurz Check Styles
 * Modern, responsive design for the Personalbedarf calculator
 */

.vls-kurz-check {
    margin: 2em 0;
    max-width: 1200px;
}

.vls-kurz-check h2 {
    margin-bottom: 1em;
    color: #333;
}

.vls-kurz-check h3 {
    margin-top: 2em;
    margin-bottom: 1em;
    color: #555;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 0.5em;
}

/* Messages */
.vls-messages {
    margin-bottom: 1em;
}

.vls-message {
    padding: 12px 15px;
    margin-bottom: 10px;
    border-radius: 4px;
    font-weight: 500;
}

.vls-message.vls-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.vls-message.vls-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.vls-loading {
    color: #666;
    font-style: italic;
}

/* Calculation Table */
.vls-calculation-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.vls-calculation-table thead {
    background-color: #0073aa;
    color: #fff;
}

.vls-calculation-table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    border: 1px solid #005a87;
}

.vls-calculation-table td {
    padding: 15px;
    border: 1px solid #ddd;
    vertical-align: top;
}

.vls-calculation-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.vls-calculation-table tbody tr:hover {
    background-color: #f0f7fa;
}

.vls-calculation-table ul {
    margin: 0.5em 0;
    padding-left: 1.5em;
}

.vls-calculation-table li {
    margin: 0.3em 0;
    font-size: 0.9em;
}

.vls-group-header {
    background-color: #e8f4f8 !important;
    font-weight: 600;
}

.vls-group-header td {
    border-top: 2px solid #0073aa;
    border-bottom: 2px solid #0073aa;
    padding: 10px 15px;
}

.vls-subtotal-row {
    background-color: #f0f7fa !important;
    font-weight: 600;
}

.vls-subtotal-row td {
    border-top: 1px solid #0073aa;
}

.vls-total-row {
    background-color: #e8f4f8 !important;
    font-weight: 600;
}

.vls-total-row td {
    border-top: 2px solid #0073aa;
}

.vls-output.vls-subtotal {
    background-color: #cce5f0;
    color: #005a87;
    font-weight: 600;
}

/* Input Fields */
.vls-input {
    width: 100%;
    max-width: 300px;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    margin: 5px 0;
}

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

/* Result Cells */
.vls-result-cell {
    text-align: right;
    font-weight: 600;
    min-width: 120px;
}

.vls-output {
    display: inline-block;
    padding: 5px 10px;
    background-color: #f0f7fa;
    border-radius: 3px;
    min-width: 80px;
    text-align: center;
}

.vls-output.vls-total {
    background-color: #0073aa;
    color: #fff;
    font-size: 1.1em;
    padding: 8px 15px;
}

/* Controls */
.vls-controls {
    margin: 1.5em 0;
    text-align: center;
}

.vls-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.vls-btn:hover {
    opacity: 0.9;
}

.vls-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

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

.vls-btn-primary:hover {
    background-color: #005a87;
}

.vls-btn-success {
    background-color: #28a745;
    color: #fff;
}

.vls-btn-success:hover {
    background-color: #218838;
}

.vls-btn-danger {
    background-color: #dc3545;
    color: #fff;
}

.vls-btn-danger:hover {
    background-color: #c82333;
}

.vls-btn-secondary {
    background-color: #6c757d;
    color: #fff;
    margin-left: 10px;
}

.vls-btn-secondary:hover {
    background-color: #5a6268;
}

.vls-btn-small {
    padding: 6px 12px;
    font-size: 12px;
    margin: 0 3px;
}

/* Save Section */
.vls-save-section {
    margin: 2em 0;
    padding: 1.5em;
    background-color: #f9f9f9;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.vls-save-input {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.vls-save-input label {
    font-weight: 600;
    margin-right: 10px;
}

.vls-save-input input[type="text"] {
    flex: 1;
    min-width: 200px;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

/* Saved Entries */
.vls-saved-entries {
    margin: 2em 0;
}

.vls-entries-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.vls-entries-table thead {
    background-color: #0073aa;
    color: #fff;
}

.vls-entries-table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    border: 1px solid #005a87;
}

.vls-entries-table td {
    padding: 12px 15px;
    border: 1px solid #ddd;
}

.vls-entries-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.vls-entries-table tbody tr:hover {
    background-color: #f0f7fa;
}

/* Responsive Design */
@media (max-width: 768px) {
    .vls-calculation-table {
        font-size: 0.9em;
    }
    
    .vls-calculation-table th,
    .vls-calculation-table td {
        padding: 8px 10px;
    }
    
    .vls-calculation-table ul {
        padding-left: 1em;
        font-size: 0.85em;
    }
    
    .vls-input {
        max-width: 100%;
    }
    
    .vls-save-input {
        flex-direction: column;
        align-items: stretch;
    }
    
    .vls-save-input label {
        margin-bottom: 5px;
    }
    
    .vls-entries-table {
        font-size: 0.9em;
    }
    
    .vls-entries-table th,
    .vls-entries-table td {
        padding: 8px 10px;
    }
}

/* Error State */
.vls-error {
    color: #dc3545;
    font-weight: 600;
}

