/* --- General Container & Layout --- */
.sct-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    padding: 2rem;
    border-radius: 15px;
    max-width: 600px;
    margin: 2rem auto;
    text-align: center;
    overflow: hidden;
    position: relative;
}

.sct-timer {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.sct-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    padding: 1rem;
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
}

.sct-time {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    transition: color 0.3s ease;
}

.sct-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
    opacity: 0.8;
}

/* --- Milestone Alert --- */
.sct-milestone-alert {
    padding: 0.75rem 1.25rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    display: none; /* Hidden by default */
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Social Sharing --- */
.sct-social-share {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.sct-social-share a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-decoration: none;
    font-family: 'Times New Roman', Times, serif;
    font-weight: bold;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

/* --- Theme: Glassmorphism --- */
.sct-theme-glassmorphism {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    color: #fff;
    background-image: linear-gradient(45deg, #ff9a9e 0%, #fad0c4 99%, #fad0c4 100%);
}
.sct-theme-glassmorphism .sct-box { background: rgba(255, 255, 255, 0.2); }
.sct-theme-glassmorphism .sct-milestone-alert { background: rgba(0, 0, 0, 0.2); color: #fff; }
.sct-theme-glassmorphism .sct-social-share a { background: #fff; color: #ff9a9e; }
.sct-theme-glassmorphism .sct-social-share a:hover { transform: scale(1.1); background: #ff9a9e; color: #fff; }

/* --- Theme: Dark --- */
.sct-theme-dark {
    background-color: #1a1a1a;
    color: #f0f0f0;
}
.sct-theme-dark .sct-box { background-color: #2a2a2a; }
.sct-theme-dark .sct-time { color: #4d94ff; }
.sct-theme-dark .sct-milestone-alert { background-color: #004d99; color: #e6f2ff; }
.sct-theme-dark .sct-social-share a { background: #4d94ff; color: #fff; }
.sct-theme-dark .sct-social-share a:hover { transform: scale(1.1); background: #fff; color: #4d94ff; }


/* --- Theme: Light --- */
.sct-theme-light {
    background-color: #f4f7f6;
    color: #333;
    border: 1px solid #e0e0e0;
}
.sct-theme-light .sct-box { background-color: #ffffff; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.sct-theme-light .sct-time { color: #d9534f; }
.sct-theme-light .sct-milestone-alert { background-color: #fcf8e3; color: #8a6d3b; border: 1px solid #faebcc; }
.sct-theme-light .sct-social-share a { background: #d9534f; color: #fff; }
.sct-theme-light .sct-social-share a:hover { transform: scale(1.1); background: #333; color: #fff; }

/* --- Mobile Responsiveness --- */
@media (max-width: 480px) {
    .sct-container { padding: 1rem; }
    .sct-timer { gap: 0.5rem; }
    .sct-box { min-width: 70px; padding: 0.5rem; }
    .sct-time { font-size: 2rem; }
    .sct-label { font-size: 0.7rem; }
}