/* Date Calculator Styles - Enterprise Quality */

/* Calculator Container */
.calculator-container {
    max-width: 1200px;
    margin: 0 auto;
}

.calculator-form-wrapper {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.calculator-form {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Form Elements */
.form-group-modern {
    margin-bottom: 1.5rem;
}

.calculator-label-modern {
    display: block;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.calculator-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f7fafc;
}

.calculator-input:focus {
    outline: none;
    border-color: #667eea;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.calculator-input:hover {
    border-color: #cbd5e0;
}

/* Input error state */
.input-error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
}

.input-error:focus {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2) !important;
}

.calculator-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    background-color: #f7fafc;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232d3748' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.calculator-select:focus {
    outline: none;
    border-color: #667eea;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.calculator-checkbox-wrapper {
    display: flex;
    align-items: center;
    margin-top: 1rem;
    padding: 1rem;
    background-color: #edf2f7;
    border-radius: 8px;
}

.calculator-checkbox {
    width: 20px;
    height: 20px;
    margin-right: 0.75rem;
    cursor: pointer;
    accent-color: #667eea;
}

.calculator-checkbox-label {
    font-size: 0.95rem;
    color: #4a5568;
    cursor: pointer;
    user-select: none;
}

.form-hint {
    display: block;
    font-size: 0.875rem;
    color: #718096;
    margin-top: 0.375rem;
    font-style: italic;
}

/* Calculate Button */
.btn-calculate {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-calculate:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-calculate:active {
    transform: translateY(0);
}

.btn-calculate:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Result Card */
.result-card-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-top: 2rem;
}

.result-card {
    background: linear-gradient(135deg, #ffffff 0%, #f7fafc 100%);
    border: 3px solid #667eea;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.15);
    min-width: 350px;
    max-width: 500px;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-label {
    font-size: 0.95rem;
    color: #ffffff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 0.75rem 1.5rem;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.result-date-primary {
    color: #c53030;
    text-align: center;
    margin: 1.5rem 0;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
}

.result-description {
    font-size: 1rem;
    color: #4a5568;
    text-align: center;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.result-calculation {
    font-size: 1rem;
    color: #2d3748;
    text-align: center;
    line-height: 1.6;
    padding: 1rem;
    background-color: #edf2f7;
    border-radius: 8px;
    margin-top: 1rem;
}

.result-breakdown {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #e2e8f0;
}

.result-breakdown-title {
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
}

.result-breakdown-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.result-breakdown-item {
    background-color: #f7fafc;
    padding: 0.75rem;
    border-radius: 8px;
    text-align: center;
}

.result-breakdown-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
}

.result-breakdown-label {
    display: block;
    font-size: 0.875rem;
    color: #718096;
    margin-top: 0.25rem;
}

/* Copy Button */
.btn-copy {
    width: 100%;
    padding: 0.75rem;
    background-color: #f7fafc;
    border: 2px solid #cbd5e0;
    border-radius: 8px;
    color: #4a5568;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn-copy:hover {
    background-color: #edf2f7;
    border-color: #667eea;
    color: #667eea;
}

/* Back to Calculator Button */
.btn-back-to-calc {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.75rem;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.btn-back-to-calc:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-back-to-calc:active {
    transform: translateY(0);
}

/* Holiday Cards */
.upcoming-holidays-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.holiday-card {
    display: flex;
    background-color: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
    text-decoration: none;
    color: #2d3748;
    transition: all 0.3s ease;
    align-items: center;
    gap: 1rem;
}

.holiday-card:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.15);
    text-decoration: none;
    color: #2d3748;
}

.holiday-countdown {
    flex-shrink: 0;
    text-align: center;
    padding: 0.75rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    min-width: 80px;
}

.holiday-days {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}

.holiday-days-label {
    display: block;
    font-size: 0.75rem;
    color: #ffffff;
    text-transform: uppercase;
    margin-top: 0.25rem;
    letter-spacing: 0.5px;
}

.holiday-info {
    flex: 1;
}

.holiday-name {
    font-weight: 600;
    font-size: 1.05rem;
    color: #2d3748;
    margin-bottom: 0.25rem;
}

.holiday-date {
    font-size: 0.95rem;
    color: #4a5568;
}

.holiday-day {
    font-size: 0.85rem;
    color: #718096;
    margin-top: 0.25rem;
}

/* Quick Links */
.quick-links-section {
    background-color: #f7fafc;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
}

.quick-links-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1.5rem;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.quick-link-card {
    background-color: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.25rem;
    text-align: center;
    text-decoration: none;
    color: #2d3748;
    transition: all 0.3s ease;
    display: block;
}

.quick-link-card:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    color: #667eea;
    text-decoration: none;
}

.quick-link-number {
    font-size: 2rem;
    font-weight: 700;
    color: #667eea;
    display: block;
}

.quick-link-text {
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

/* Error Message */
.error-message {
    background-color: #fff5f5;
    border: 2px solid #fc8181;
    border-radius: 8px;
    padding: 1rem;
    color: #c53030;
    margin-bottom: 1rem;
}

.validation-message {
    color: #c53030;
    font-size: 0.875rem;
    margin-top: 0.375rem;
}

/* Content Sections */
.calculator-h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2d3748;
    margin-top: 3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #667eea;
}

.calculator-h3 {
    font-size: 1.35rem;
    font-weight: 600;
    color: #4a5568;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* Navigation Sidebar */
.inpage-nav-container {
    background-color: #f7fafc;
    border-radius: 12px;
    padding: 1.5rem;
    position: sticky;
    top: 20px;
    z-index: 10;
}

.inpage-nav-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1rem;
}

.inpagenav {
    display: block;
    padding: 0.75rem 0;
    color: #667eea;
    text-decoration: none;
    border-left: 3px solid transparent;
    padding-left: 1rem;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.inpagenav:hover {
    border-left-color: #667eea;
    background-color: rgba(102, 126, 234, 0.05);
    text-decoration: none;
    color: #5568d3;
}

/* Instructions List */
.instructions-list {
    line-height: 2;
    padding-left: 1.5rem;
}

.instructions-list li {
    margin-bottom: 1rem;
    color: #2d3748;
}

/* FAQ Section */
.faq-section {
    margin-top: 3rem;
}

.faq-item {
    background-color: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.faq-question {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.75rem;
}

.faq-answer {
    color: #4a5568;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .calculator-form-wrapper {
        padding: 1rem;
    }
    
    .calculator-form {
        padding: 1.5rem;
    }
    
    .result-card {
        min-width: 100%;
        padding: 1.5rem;
    }
    
    .result-date-primary {
        font-size: 1.5rem;
    }
    
    .result-breakdown-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-links-grid {
        grid-template-columns: 1fr;
    }

    .upcoming-holidays-grid {
        grid-template-columns: 1fr;
    }
    
    .inpage-nav-container {
        position: relative;
        top: 0;
        margin-bottom: 2rem;
    }

    .btn-copy,
    .btn-back-to-calc {
        width: 100%;
        margin-top: 0.75rem;
    }

    .holiday-card {
        flex-direction: column;
        text-align: center;
    }

    .holiday-countdown {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .calculator-h2 {
        font-size: 1.5rem;
    }
    
    .calculator-h3 {
        font-size: 1.2rem;
    }

    .result-card {
        padding: 1rem;
    }

    .result-date-primary {
        font-size: 1.35rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Print Styles */
@media print {
    .calculator-form-wrapper,
    .quick-links-section,
    .inpage-nav-container,
    .btn-back-to-calc,
    .upcoming-holidays-grid {
        display: none;
    }
    
    .result-card {
        border: 2px solid #000;
        box-shadow: none;
        page-break-inside: avoid;
    }

    .btn-copy {
        display: none;
    }
}
