/* Tool.css - Lunar Calendar Converter */

/* Conversion Section */
.conversion-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

[data-bs-theme="dark"] .conversion-section {
    background: #2a2a2a;
}

.conversion-section h5 {
    color: #052c65;
    margin-bottom: 20px;
}

[data-bs-theme="dark"] .conversion-section h5 {
    color: #66a3ff;
}

/* Result Card */
.result-card {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 30px;
    margin-top: 20px;
}

[data-bs-theme="dark"] .result-card {
    background: #2a2a2a;
}

/* Date Display Cards */
.date-display-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-left: 4px solid;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.date-display-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

[data-bs-theme="dark"] .date-display-card {
    background: #2a2a2a;
}

.solar-card {
    border-left-color: #ffa726;
}

.lunar-card {
    border-left-color: #ab47bc;
}

.date-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.date-type {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #999;
    margin-bottom: 8px;
}

[data-bs-theme="dark"] .date-type {
    color: #aaa;
}

.date-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #052c65;
    margin-bottom: 5px;
    line-height: 1.3;
}

[data-bs-theme="dark"] .date-value {
    color: #66a3ff;
}

.date-details {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

[data-bs-theme="dark"] .date-details {
    color: #aaa;
}

/* Info Title */
.info-title {
    color: #052c65;
    font-weight: 700;
    font-size: 0.95rem;
}

[data-bs-theme="dark"] .info-title {
    color: #66a3ff;
}

/* Info Items */
.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 8px;
}

.info-item:last-child {
    margin-bottom: 0;
}

[data-bs-theme="dark"] .info-item {
    background: #1a1a1a;
}

.info-label {
    font-weight: 500;
    color: #666;
    font-size: 0.9rem;
}

[data-bs-theme="dark"] .info-label {
    color: #aaa;
}

.info-value {
    font-weight: 700;
    color: #052c65;
    font-size: 0.95rem;
}

[data-bs-theme="dark"] .info-value {
    color: #66a3ff;
}

/* Zodiac Display */
.zodiac-display {
    display: flex;
    align-items: center;
    padding: 15px;
    background: linear-gradient(135deg, #fff8e1 0%, #ffe082 100%);
    border-radius: 8px;
    border-left: 4px solid #ffa726;
    min-height: 80px;
}

[data-bs-theme="dark"] .zodiac-display {
    background: linear-gradient(135deg, #f57f17 0%, #f9a825 100%);
}

.zodiac-icon {
    font-size: 2.5rem;
    margin-right: 15px;
    flex-shrink: 0;
}

.zodiac-info {
    flex: 1;
    min-width: 0;
}

.zodiac-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #e65100;
    margin-bottom: 3px;
    line-height: 1.2;
}

[data-bs-theme="dark"] .zodiac-name {
    color: #fff;
}

.zodiac-type {
    font-size: 0.75rem;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

[data-bs-theme="dark"] .zodiac-type {
    color: rgba(255, 255, 255, 0.7);
}

/* Button Group Styling */
.btn-group .btn-check:checked + .btn-outline-primary {
    background-color: #052c65;
    border-color: #052c65;
}

[data-bs-theme="dark"] .btn-group .btn-check:checked + .btn-outline-primary {
    background-color: #4d94ff;
    border-color: #4d94ff;
}

/* Lunar Calendar Grid */
.lunar-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    background: #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

[data-bs-theme="dark"] .lunar-calendar-grid {
    background: #333;
}

.calendar-day-header {
    background: #f5f5f5;
    padding: 12px 5px;
    text-align: center;
    font-weight: 600;
    font-size: 0.85rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

[data-bs-theme="dark"] .calendar-day-header {
    background: #2a2a2a;
    color: #999;
}

.calendar-day {
    background: #fff;
    padding: 10px 8px;
    min-height: 85px;
    position: relative;
    transition: background 0.2s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

[data-bs-theme="dark"] .calendar-day {
    background: #1a1a1a;
}

.calendar-day:hover {
    background: #f8f9fa;
}

[data-bs-theme="dark"] .calendar-day:hover {
    background: #252525;
}

.calendar-day.other-month {
    background: #fafafa;
    opacity: 0.4;
}

[data-bs-theme="dark"] .calendar-day.other-month {
    background: #111;
}

.calendar-day.today {
    background: #e3f2fd;
    position: relative;
}

[data-bs-theme="dark"] .calendar-day.today {
    background: #1a3a52;
}

.calendar-day.today::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #2196f3;
}

.solar-date {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    line-height: 1;
}

[data-bs-theme="dark"] .solar-date {
    color: #e0e0e0;
}

.lunar-date {
    font-size: 0.75rem;
    color: #d32f2f;
    font-weight: 500;
    line-height: 1.2;
}

[data-bs-theme="dark"] .lunar-date {
    color: #ff6b6b;
}

.calendar-day.sunday .solar-date {
    color: #d32f2f;
}

[data-bs-theme="dark"] .calendar-day.sunday .solar-date {
    color: #ff6b6b;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .date-value {
        font-size: 1.4rem;
    }

    .date-display-card {
        padding: 20px;
        min-height: 160px;
    }

    .zodiac-icon {
        font-size: 3rem;
    }

    .zodiac-name {
        font-size: 1.3rem;
    }

    .result-card {
        padding: 20px;
    }

    .additional-lunar-info, .zodiac-section {
        padding: 20px;
    }

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

    .lunar-calendar-grid {
        gap: 1px;
    }

    .calendar-day {
        min-height: 70px;
        padding: 6px 4px;
    }

    .solar-date {
        font-size: 1rem;
    }

    .lunar-date {
        font-size: 0.7rem;
    }

    .calendar-day-header {
        font-size: 0.75rem;
        padding: 10px 4px;
    }
}
