/* German Tax Calculator - Main Styles */

.gtc-calculator-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.gtc-calculator-container {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.gtc-calculator-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

/* Form Styles */
.gtc-form {
    margin-bottom: 30px;
}

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

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

.gtc-form-group input[type="number"],
.gtc-form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

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

.gtc-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .gtc-form-row {
        grid-template-columns: 1fr;
    }
}

.gtc-checkbox-group {
    display: flex;
    align-items: center;
}

.gtc-checkbox-group label {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    font-weight: 500;
}

.gtc-checkbox-group input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
    width: auto;
}

/* Advanced Section */
.gtc-advanced-section {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.gtc-advanced-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

/* Button Styles */
.gtc-button-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 30px;
}

.gtc-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

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

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

.gtc-btn-secondary {
    background-color: #6c757d;
    color: #ffffff;
}

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

/* Results Styles */
.gtc-results {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e0e0e0;
}

.gtc-results h3 {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin-bottom: 25px;
}

.gtc-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.gtc-result-card {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 20px;
}

.gtc-result-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0073aa;
}

.gtc-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 14px;
}

.gtc-result-item:not(:last-child) {
    border-bottom: 1px solid #e0e0e0;
}

.gtc-label {
    font-weight: 500;
    color: #555;
}

.gtc-value {
    font-weight: 700;
    color: #0073aa;
    font-size: 15px;
}

.gtc-value.gtc-highlight {
    color: #28a745;
    font-size: 16px;
}

/* Action Buttons */
.gtc-action-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Modal Styles */
.gtc-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.gtc-modal-content {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 90%;
}

.gtc-modal-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.gtc-modal-content input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 20px;
}

.gtc-modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gtc-calculator-container {
        padding: 20px;
    }

    .gtc-calculator-title {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .gtc-results-grid {
        grid-template-columns: 1fr;
    }

    .gtc-button-group,
    .gtc-action-buttons {
        flex-direction: column;
    }

    .gtc-btn {
        width: 100%;
    }
}

/* Loading State */
.gtc-loading {
    opacity: 0.6;
    pointer-events: none;
}

.gtc-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: gtc-spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes gtc-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Error Messages */
.gtc-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
}

/* Success Messages */
.gtc-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
}
