/* Date Calculator - Dark theme default matching site style */

/* Calculator Section */
.calculator-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.calculator-container {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid #334155;
    border-radius: 12px;
    overflow: hidden;
}

/* Tab Navigation */
.calculator-tabs {
    display: flex;
    border-bottom: 1px solid #334155;
    background: rgba(15, 23, 42, 0.5);
}

.tab-button {
    flex: 1;
    padding: 16px 24px;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.tab-button:hover {
    background: rgba(30, 41, 59, 0.5);
    color: #e2e8f0;
}

.tab-button.active {
    color: #60a5fa;
    background: rgba(30, 41, 59, 0.5);
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #60a5fa;
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Calculator Card */
.calculator-card {
    padding: 32px;
}

.calculator-title {
    font-size: 20px;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 8px;
}

.calculator-desc {
    color: #94a3b8;
    margin-bottom: 28px;
    line-height: 1.6;
}

/* Form Styling */
.calculator-form {
    margin-bottom: 32px;
}

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

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

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

.form-group-row-4 {
    grid-template-columns: repeat(4, 1fr);
}

.form-input,
.form-select {
    width: 100%;
    padding: 10px 14px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid #334155;
    border-radius: 6px;
    color: #e2e8f0;
    font-size: 15px;
    transition: all 0.2s;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

.form-input::placeholder {
    color: #64748b;
}

/* Input with Button */
.input-with-button {
    display: flex;
    gap: 8px;
}

.input-with-button .form-input {
    flex: 1;
}

.btn-sm {
    padding: 8px 12px;
    font-size: 13px;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-primary {
    background: #60a5fa;
    color: #020617;
    width: 100%;
}

.btn-primary:hover {
    background: #3b82f6;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(96, 165, 250, 0.3);
}

.btn-secondary {
    background: rgba(71, 85, 105, 0.5);
    color: #e2e8f0;
    border: 1px solid #475569;
}

.btn-secondary:hover {
    background: rgba(71, 85, 105, 0.8);
}

.btn-calculate {
    margin-top: 24px;
}

/* Result Container */
.result-container {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid #334155;
}

.result-title {
    font-size: 18px;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 20px;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.result-card {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 16px;
    transition: all 0.2s;
}

.result-card:hover {
    border-color: #475569;
    transform: translateY(-2px);
}

.result-highlight {
    background: rgba(96, 165, 250, 0.1);
    border-color: #60a5fa;
}

.result-label {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 8px;
    font-weight: 500;
}

.result-value {
    font-size: 24px;
    font-weight: 600;
    color: #e2e8f0;
}

.result-highlight .result-value {
    color: #60a5fa;
}

.result-desc {
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
}

/* Info Sections */
.info-section,
.features-section,
.faq-section,
.related-tools-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.info-container {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 32px;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 24px;
}

.how-to-list,
.features-list {
    list-style: none;
    counter-reset: item;
    padding: 0;
}

.how-to-list li {
    counter-increment: item;
    padding: 16px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid #334155;
    border-radius: 8px;
    margin-bottom: 12px;
    color: #cbd5e1;
    line-height: 1.6;
    position: relative;
    padding-left: 50px;
}

.how-to-list li::before {
    content: counter(item);
    position: absolute;
    left: 16px;
    top: 16px;
    background: #60a5fa;
    color: #020617;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
}

.features-list li {
    padding: 12px 16px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid #334155;
    border-radius: 8px;
    margin-bottom: 10px;
    color: #cbd5e1;
    line-height: 1.6;
    padding-left: 40px;
    position: relative;
}

.features-list li::before {
    content: '✓';
    position: absolute;
    left: 16px;
    top: 12px;
    color: #60a5fa;
    font-weight: 600;
    font-size: 16px;
}

/* FAQ Section */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 20px;
}

.faq-question {
    font-size: 16px;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 12px;
}

.faq-answer {
    color: #cbd5e1;
    line-height: 1.7;
    margin: 0;
}

/* Related Tools */
.related-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.related-tool-card {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 20px;
    text-decoration: none;
    transition: all 0.2s;
    display: block;
}

.related-tool-card:hover {
    border-color: #60a5fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(96, 165, 250, 0.2);
}

.related-tool-title {
    font-size: 16px;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 8px;
}

.related-tool-desc {
    font-size: 14px;
    color: #94a3b8;
    margin: 0;
    line-height: 1.5;
}

/* Light Theme Overrides */
[data-theme="light"] .calculator-container,
[data-theme="light"] .info-container {
    background: #ffffff;
    border-color: #e2e8f0;
}

[data-theme="light"] .calculator-tabs {
    background: #f8fafc;
    border-color: #e2e8f0;
}

[data-theme="light"] .tab-button {
    color: #64748b;
}

[data-theme="light"] .tab-button:hover {
    background: #f1f5f9;
    color: #334155;
}

[data-theme="light"] .tab-button.active {
    color: #3b82f6;
    background: #ffffff;
}

[data-theme="light"] .tab-button.active::after {
    background: #3b82f6;
}

[data-theme="light"] .calculator-title,
[data-theme="light"] .result-title,
[data-theme="light"] .section-title,
[data-theme="light"] .result-value,
[data-theme="light"] .faq-question,
[data-theme="light"] .related-tool-title {
    color: #0f172a;
}

[data-theme="light"] .calculator-desc,
[data-theme="light"] .result-label,
[data-theme="light"] .related-tool-desc {
    color: #64748b;
}

[data-theme="light"] .form-group label {
    color: #334155;
}

[data-theme="light"] .form-input,
[data-theme="light"] .form-select {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #0f172a;
}

[data-theme="light"] .form-input:focus,
[data-theme="light"] .form-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

[data-theme="light"] .btn-primary {
    background: #3b82f6;
    color: #ffffff;
}

[data-theme="light"] .btn-primary:hover {
    background: #2563eb;
}

[data-theme="light"] .btn-secondary {
    background: #f1f5f9;
    color: #334155;
    border-color: #cbd5e1;
}

[data-theme="light"] .btn-secondary:hover {
    background: #e2e8f0;
}

[data-theme="light"] .result-card,
[data-theme="light"] .how-to-list li,
[data-theme="light"] .features-list li,
[data-theme="light"] .faq-item,
[data-theme="light"] .related-tool-card {
    background: #f8fafc;
    border-color: #e2e8f0;
}

[data-theme="light"] .result-highlight {
    background: rgba(59, 130, 246, 0.05);
    border-color: #3b82f6;
}

[data-theme="light"] .result-highlight .result-value {
    color: #3b82f6;
}

[data-theme="light"] .result-desc {
    color: #94a3b8;
}

[data-theme="light"] .faq-answer,
[data-theme="light"] .how-to-list li,
[data-theme="light"] .features-list li {
    color: #475569;
}

[data-theme="light"] .how-to-list li::before {
    background: #3b82f6;
    color: #ffffff;
}

[data-theme="light"] .features-list li::before {
    color: #3b82f6;
}

[data-theme="light"] .related-tool-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-group-row {
        grid-template-columns: 1fr;
    }

    .form-group-row-4 {
        grid-template-columns: 1fr 1fr;
    }

    .result-grid {
        grid-template-columns: 1fr;
    }

    .calculator-card {
        padding: 24px;
    }

    .info-container {
        padding: 24px;
    }

    .tab-button {
        padding: 12px 16px;
        font-size: 14px;
    }

    .related-tools-grid {
        grid-template-columns: 1fr;
    }
}

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

    .calculator-card {
        padding: 20px;
    }

    .info-container {
        padding: 20px;
    }

    .section-title {
        font-size: 20px;
    }

    .result-value {
        font-size: 20px;
    }
}
