/* RF4 Time Tool styles */
.rf4-main-card {
    text-align: center;
    transition: background 0.5s ease;
}

.rf4-main-card.night-bg,
body.dark .rf4-main-card.night-bg,
html.dark .rf4-main-card.night-bg {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #f0f0f0;
}

.rf4-main-card.dawn-bg,
body.dark .rf4-main-card.dawn-bg,
html.dark .rf4-main-card.dawn-bg {
    background: linear-gradient(135deg, #ff9a56 0%, #ffcd69 100%);
    color: #1a1a1a;
}

.rf4-main-card.day-bg,
body.dark .rf4-main-card.day-bg,
html.dark .rf4-main-card.day-bg {
    background: linear-gradient(135deg, #56ccf2 0%, #2f80ed 100%);
    color: #1a1a1a;
}

.rf4-main-card.dusk-bg,
body.dark .rf4-main-card.dusk-bg,
html.dark .rf4-main-card.dusk-bg {
    background: linear-gradient(135deg, #a855f7 0%, #6366f1 100%);
    color: #f0f0f0;
}

.rf4-header {
    margin-bottom: 20px;
}

.rf4-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 10px;
}

.rf4-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.rf4-subtitle {
    font-size: 14px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.rf4-time-display {
    margin: 30px 0;
}

.rf4-time {
    font-size: 72px;
    font-weight: 700;
    font-family: "Cascadia Code", "Fira Code", monospace;
    letter-spacing: 4px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.rf4-period {
    font-size: 24px;
    font-weight: 600;
    margin-top: 10px;
    padding: 8px 20px;
    border-radius: 20px;
    display: inline-block;
    transition: all 0.3s ease;
}

.rf4-period.night {
    background: rgba(26, 26, 46, 0.3);
    color: #f0f0f0;
}

.rf4-period.dawn {
    background: rgba(255, 154, 86, 0.3);
    color: #1a1a1a;
}

.rf4-period.day {
    background: rgba(86, 204, 242, 0.3);
    color: #1a1a1a;
}

.rf4-period.dusk {
    background: rgba(168, 85, 247, 0.3);
    color: #f0f0f0;
}

.rf4-progress-container {
    position: relative;
    height: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    margin: 20px 0;
    overflow: visible;
}

.rf4-progress-bar {
    height: 100%;
    background: linear-gradient(
        90deg,
        #1a1a2e 0%,
        #1a1a2e 25%,
        #ff9a56 25%,
        #ffcd69 41.7%,
        #56ccf2 41.7%,
        #2f80ed 91.7%,
        #a855f7 91.7%,
        #6366f1 100%
    );
    border-radius: 6px;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.rf4-sun-indicator {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: left 0.1s linear;
    z-index: 10;
}

.rf4-day-phases {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    opacity: 0.9;
    margin-top: 8px;
    color: inherit;
}

.rf4-phase {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rf4-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.rf4-info-item {
    padding: 15px;
    background: var(--bg-light);
    border-radius: 8px;
    text-align: center;
    transition: background-color 0.3s ease;
}

body.dark .rf4-info-item,
html.dark .rf4-info-item {
    background: var(--bg-dark);
}

.rf4-info-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.7;
    margin-bottom: 5px;
}

.rf4-info-value {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
}

@media (max-width: 768px) {
    .rf4-time {
        font-size: 48px;
    }

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

    .rf4-day-phases {
        font-size: 10px;
    }
}
