.date-calc-page {
    max-width: var(--small-width);
    margin: 0 auto;
    padding: 60px 20px;
}

.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 30px;
    background: white;
    padding: 8px;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.tab-btn {
    flex: 1;
    padding: 14px 20px;
    background: transparent;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn:hover {
    background: #f3f4f6;
    color: #374151;
}

.tab-btn.active {
    background: #8b5cf6;
    color: white;
}

.card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
}

.card-title {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 24px 0;
}

.quick-select {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.quick-btn {
    padding: 10px 18px;
    background: #f3f4f6;
    color: #6b7280;
    border: none;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.quick-btn:hover {
    background: #e9d5ff;
    color: #8b5cf6;
}

.input-row {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    margin-bottom: 20px;
}

.input-group {
    flex: 1;
}

.input-label {
    display: block;
    font-size: 15px;
    color: #6b7280;
    margin-bottom: 8px;
    font-weight: 500;
}

.date-input,
.num-input,
.text-input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 500;
    color: #1f2937;
    background: #f9fafb;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.date-input:focus,
.num-input:focus,
.text-input:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
    background: white;
}

.swap-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 20px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
}

.swap-btn:hover {
    background: #e9d5ff;
    border-color: #8b5cf6;
    color: #8b5cf6;
}

.btn-row {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.calc-btn {
    flex: 1;
    padding: 14px 24px;
    background: #8b5cf6;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.calc-btn:hover {
    background: #7c3aed;
}

.calc-btn:active {
    transform: scale(0.98);
}

.calc-btn-secondary {
    flex: 1;
    padding: 12px 24px;
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.calc-btn-secondary:hover {
    background: #e5e7eb;
    color: #374151;
}

.result-section {
    padding-top: 20px;
    border-top: 1px solid #f3f4f6;
}

.result-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.workday-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.result-card {
    background: #f9fafb;
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e5e7eb;
}

.result-num {
    display: block;
    font-size: 40px;
    font-weight: 700;
    color: #8b5cf6;
    line-height: 1.2;
}

.result-unit {
    font-size: 16px;
    color: #6b7280;
    margin-top: 6px;
    display: block;
}

.detail-section {
    background: #f9fafb;
    padding: 20px 24px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.detail-title {
    font-size: 16px;
    font-weight: 600;
    color: #8b5cf6;
    margin-bottom: 10px;
}

.detail-content {
    font-size: 16px;
    color: #374151;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .input-row {
        flex-direction: column;
        align-items: stretch;
    }

    .swap-btn {
        align-self: flex-start;
        width: 100%;
    }

    .btn-row {
        flex-direction: column;
    }

    .result-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-select {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .date-calc-page {
        padding: 12px;
    }

    .card {
        padding: 16px;
    }

    .tab-btn {
        padding: 10px 12px;
        font-size: 13px;
    }
}