/*Version: .12 - Modern Edition*/

.timer-unit[href] {
    text-decoration: none;
    color: inherit;
}

.countdown-timer {
    position: relative;
    align-items: center;
    background: linear-gradient(145deg, #1e1e1e, #252525);
    width: 265px;
    height: 90px;
    border-radius: 16px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4), 0 6px 6px rgba(0, 0, 0, 0.3);
    position: absolute;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.countdown-timer:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 10px 10px rgba(0, 0, 0, 0.3);
}

.countdown-timer.blurred .timer-content {

}

.premium-only-message {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 79%;
    transform: translate(-50%, -50%);
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.8), rgba(20, 20, 20, 0.9));
    color: white;
    padding: 15px;
    border-radius: 12px;
    z-index: 10;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.premium-only-message a {
    color: #4CAF50;
    text-decoration: underline !important;
    transition: all 0.3s ease;
}

.premium-only-message a:hover {
    color: #81C784;
    text-shadow: 0 0 8px rgba(76, 175, 80, 0.4);
}

.premium-reset-warning-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(145deg, #1a1a1a, #252525);
    color: #ffffff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 5px 15px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    text-align: center;
    max-width: 80%;
    width: 300px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    animation: modalFadeIn 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translate(-50%, -60%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

.premium-reset-warning-modal p {
    margin-bottom: 25px;
    line-height: 1.5;
}

.premium-reset-warning-modal button {
    margin: 10px;
    padding: 12px 24px;
    cursor: pointer;
    background: linear-gradient(145deg, #333, #2a2a2a);
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.premium-reset-warning-modal button:hover {
    background: linear-gradient(145deg, #3a3a3a, #333);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.premium-reset-warning-modal button.confirm {
    background: linear-gradient(145deg, #d32f2f, #b71c1c);
}

.premium-reset-warning-modal button.confirm:hover {
    background: linear-gradient(145deg, #f44336, #d32f2f);
}

.countdown-timer .timer-title {
    display: block;
    color: white;
    padding: 8px 15px;
    font-size: 14px;
    width: 75%;
    text-align: center;
    background: linear-gradient(145deg, #252525, #2a2a2a);
    border-radius: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: absolute;
    top: 26px;
    z-index: 2;
    letter-spacing: 0.5px;
    
}

.countdown-timer .timer-title:hover {
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
    background: linear-gradient(145deg, #2a2a2a, #303030);
}

.countdown-timer .timer-title a {
    color: white;
    text-decoration: none;
    display: block;
    width: 100%;
    height: 100%;
}

.countdown-timer .timer-title a:hover {
    text-decoration: none;
    color: #81C784;
}

.countdown-timer .timer-display a.timer-unit:hover {
    text-decoration: underline;
    color: #4CAF50;
}

.countdown-timer.fade-out .start-reset-button {
    opacity: 0;
}

.countdown-timer:hover .start-reset-button,
.countdown-timer.focused .start-reset-button {
    opacity: 1;
}

.countdown-timer.completed {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 25px rgba(0, 255, 12, 0.7);
    border: 2px solid rgba(0, 255, 12, 0.4);
    position: relative;
    z-index: 10;
}

/* Static glow background - always present */
.countdown-timer.completed::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: rgba(0, 255, 12, 0.15);
    border-radius: inherit;
    opacity: 0.15;
    z-index: -1;
}

/* Only animate on initial page load */
.countdown-timer.completed.just-completed {
    animation: completedPulse 1s ease-in-out 2;
}

.countdown-timer.completed.just-completed::before {
    animation: completedGlowPulse 1s ease-in-out 2;
}

@keyframes completedPulse {
    0% { 
        transform: scale(1);
    }
    50% { 
        transform: scale(1.02);
    }
    100% { 
        transform: scale(1);
    }
}

@keyframes completedGlowPulse {
    0% { 
        opacity: 0.3;
        transform: scale(1);
    }
    50% { 
        opacity: 0.6;
        transform: scale(1.1);
    }
    100% { 
        opacity: 0.3;
        transform: scale(1);
    }
}

.countdown-timer .timer-display {
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translate(-50%, 30%);
    color: #4CAF50;
    font-size: 16px;
    margin: 0;
    z-index: 2;
    letter-spacing: 0.2px;
    font-weight: 500;
}

.timer-image {
    width: 90%;
    max-width: 90%;
    text-align: center;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.4));
}

.timer-image img {
    max-width: 100%;
    height: auto;
    overflow: hidden;
    overflow-x: hidden;
    overflow-y: hidden;
    transition: all 0.5s ease;
}

.countdown-timer:hover .timer-image img {
    transform: scale(1.03);
}

.countdown-timer button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.countdown-timer button:active {
    transform: scale(0.95);
}

.countdown-timer .remove-timer:hover {
    background: linear-gradient(145deg, rgb(0 0 0), rgb(11 11 11));
    color: red;
    transform: scale(1.0) rotate(90deg);
    opacity: 1;
}

.countdown-timer .timer-inputs {
    display: flex;
    align-items: center;
    flex-direction: row;
}

.countdown-timer.premium-only {
    opacity: 0.5;
    pointer-events: none;
    filter: grayscale(40%);
}

.countdown-timer .premium-message {
    margin-top: 10px;
    font-style: italic;
    color: #aaa;
    font-size: 12px;
}

.countdown-timer .timer-unit {
    margin: 0;
    font-weight: 600;
}

.countdown-timer .timer-unit:not(:last-child)::after {
    content: ':';
    margin: 0 2px;
    color: #4caf50cc; /* Default green for default dark theme */
}



.countdown-timer .button-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    position: relative;
    margin-top: 10px;
}

.countdown-timer .start-reset-button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
    color: rgba(76, 175, 80, 0.8);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    opacity: 0.8;
    position: absolute;
    right: 1px;
    top: 97%;
    z-index: 5;
}

.countdown-timer .start-reset-button:hover {
    transform: scale(1.15);
    color: rgba(76, 175, 80, 1);
}

.countdown-timer .start-reset-button.reset {
    color: #f44336;
}

.countdown-timer .start-reset-button.reset:hover {
    color: #f44336;
}

.countdown-timer.fade-out .start-reset-button.reset {
    opacity: 0;
}

.countdown-timer:hover .start-reset-button.reset,
.countdown-timer.focused .start-reset-button.reset {
    opacity: 1;
}

.countdown-timer .time-separator {
    font-size: 24px;
    font-weight: bold;
    margin: 0 5px;
    align-self: center;
    color: rgba(76, 175, 80, 0.7);
}

.countdown-timer .on-complete-message {
    margin-bottom: 10px;
    font-weight: bold;
    color: #4CAF50;
    animation: pulseText 1.5s infinite;
}

@keyframes pulseText {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

.countdown-timer input.readonly {
    background-color: #2a2a2a;
    cursor: not-allowed;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.countdown-timer .info-button:hover,
.countdown-timer .start-reset-button:hover {
    transform: scale(1.1);
    color: rgba(76, 175, 80, 1);
}

.countdown-timer .info-button {
    background: none;
    border: none;
    font-size: 16px;
    position: relative;
    right: 91px;
    top: 4px;
    color: rgba(76, 175, 80, 1);
    display: flex;
    align-items: center;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
}

.countdown-timer .info-button:hover {
    transform: scale(1.1);
    color: rgba(76, 175, 80, 1);
    
}

.info-button-container, .start-reset-button-container {
    display: inline-block;

}

/* Timer Edit Button Styles */
.timer-edit-button {
    position: absolute;
    top: 71px;
    right: 23px;
    background: none;
    border: none;
    color: rgba(76, 175, 80, 0.7);
    font-size: 12px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    opacity: 1;
    transform: scale(1);
}

/* World Time End Timer Globe Icon */
.world-time-globe-icon {
    position: absolute;
    top: 1px;
    left: 58px;
    color: #4CAF50;
    font-size: 14px;
    z-index: 10;
    opacity: 0.8;
    text-shadow: 0 0 8px rgba(76, 175, 80, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
}

.world-time-globe-icon:hover {
    opacity: 1;
    transform: scale(1.1);
    text-shadow: 0 0 12px rgba(76, 175, 80, 0.6);
}

/* Hide edit button when timer is running or completed */
.countdown-timer[data-is-running="true"] .timer-edit-button,
.countdown-timer.completed .timer-edit-button {
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
}

.timer-edit-button:hover {
    color: rgba(76, 175, 80, 1);
    transform: scale(1.1);
}

/* Timer display format styles */
.timer-unit.timer-text {
    font-size: 13px;
    color: #4CAF50;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.timer-unit.timer-ampm {
    font-size: 12px;
    color: #4CAF50;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Responsive adjustments for different formats */
@media (max-width: 768px) {
    .timer-unit.timer-text,
    .timer-unit.timer-ampm {
        font-size: 11px;
    }
}

/* Additional timer elements */
.timer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    
    box-sizing: border-box;
    position: relative;
    width: 265px;
}

.timer-name {
    font-size: 16px;
    color: white;
    font-weight: 600;
    text-align: center;
    margin-top: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.timer-countdown {
    font-size: 20px;
    font-weight: 700;
    color: #4CAF50;
    text-shadow: 0 0 8px rgba(76, 175, 80, 0.3);
    margin-bottom: 5px;
}

.timer-expired {
    color: #f44336;
    animation: pulse-red 1.5s infinite;
}

@keyframes pulse-red {
    0% { text-shadow: 0 0 8px rgba(244, 67, 54, 0.3); }
    50% { text-shadow: 0 0 20px rgba(244, 67, 54, 0.6); }
    100% { text-shadow: 0 0 8px rgba(244, 67, 54, 0.3); }
}

.timer-warning {
    color: #ff9800;
    animation: pulse-orange 1.5s infinite;
}

@keyframes pulse-orange {
    0% { text-shadow: 0 0 8px rgba(255, 152, 0, 0.3); }
    50% { text-shadow: 0 0 20px rgba(255, 152, 0, 0.6); }
    100% { text-shadow: 0 0 8px rgba(255, 152, 0, 0.3); }
}

.timer-critical {
    color: #ff5722;
    animation: pulse-deep-orange 1.5s infinite;
}

@keyframes pulse-deep-orange {
    0% { text-shadow: 0 0 8px rgba(255, 87, 34, 0.3); }
    50% { text-shadow: 0 0 20px rgba(255, 87, 34, 0.6); }
    100% { text-shadow: 0 0 8px rgba(255, 87, 34, 0.3); }
}

.timer-unit {
    display: inline-block;
    position: relative;
}

.timer-tooltip {
    visibility: hidden;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    text-align: center;
    padding: 5px 10px;
    border-radius: 6px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
    white-space: nowrap;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.timer-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.8) transparent transparent transparent;
}

.timer-unit:hover .timer-tooltip {
    visibility: visible;
    opacity: 1;
}

.fav-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #aaa;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 2;
}

.fav-btn:hover {
    color: #ffc107;
    transform: scale(1.1);
}

.fav-btn.active {
    color: #ffc107;
    animation: starPulse 2s infinite;
}

@keyframes starPulse {
    0% { transform: scale(1); text-shadow: 0 0 5px rgba(255, 193, 7, 0.5); }
    50% { transform: scale(1.2); text-shadow: 0 0 15px rgba(255, 193, 7, 0.7); }
    100% { transform: scale(1); text-shadow: 0 0 5px rgba(255, 193, 7, 0.5); }
}

.timer-action-btn {
    background: linear-gradient(145deg, #4CAF50, #388E3C);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    margin-top: 5px;
    display: inline-block;
}

.timer-action-btn:hover {
    background: linear-gradient(145deg, #5cb860, #43a047);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.timer-action-btn.claimed {
    background: linear-gradient(145deg, #757575, #616161);
    cursor: default;
}

.claimed-label {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(145deg, rgba(76, 175, 80, 0.9), rgba(56, 142, 60, 0.9));
    color: white;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    z-index: 3;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.claim-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(circle, rgba(76, 175, 80, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 16px;
    animation: claimPulse 2s infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes claimPulse {
    0% { opacity: 0.7; transform: scale(0.95); }
    50% { opacity: 0.3; transform: scale(1.05); }
    100% { opacity: 0.7; transform: scale(0.95); }
}

.missed-badge {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(145deg, rgba(244, 67, 54, 0.9), rgba(211, 47, 47, 0.9));
    color: white;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    z-index: 3;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.timer-highlight {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 16px;
    box-shadow: 0 0 0 0 rgba(255, 204, 0, 1);
    animation: highlight-pulse 2s infinite;
    z-index: 1;
    pointer-events: none;
    opacity: 0.7;
}

@keyframes highlight-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 204, 0, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 204, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 204, 0, 0); }
}

.multiple-dailys-display {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.7);
    color: #4CAF50;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
}

.multiple-dailys-tooltip {
    position: absolute;
    background: linear-gradient(145deg, #333, #2a2a2a);
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    z-index: 9999;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    animation: tooltipFade 0.3s ease;
    visibility: hidden;
    opacity: 0;
}

@keyframes tooltipFade {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.multiple-dailys-display:hover .multiple-dailys-tooltip {
    visibility: visible;
    opacity: 1;
}

.timer-content .multiple-dailys-badge {
    position: absolute;
    top: 72px;
    left: 30px;
    background: linear-gradient(145deg, #333, #2a2a2a);
    color: #888;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 0px 4px;
    font-size: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timer-content .multiple-dailys-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3), 
                0 0 0 1px rgba(255, 255, 255, 0.2);
    background: linear-gradient(145deg, rgba(92, 184, 96, 0.9), rgba(67, 160, 71, 0.9));
}

.timer-content .multiple-dailys-tooltip {
    position: absolute;
    background: linear-gradient(145deg, #333, #2a2a2a);
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    z-index: 9999;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    animation: tooltipFade 0.3s ease;
    visibility: hidden;
    opacity: 0;
}

.timer-content .multiple-dailys-badge:hover .multiple-dailys-tooltip {
    visibility: visible;
    opacity: 1;
}

.countdown-timer .timer-display {
    position: absolute;
    top: 86%;
    transform: translate(-50%, 30%);
    color: #4CAF50;
    font-size: 14px;
    margin: 0;
    z-index: 2;
    letter-spacing: 0.2px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90%;
}

.vpn-type-button {
    position: absolute;
    top: 4px;
    right: 30px;
    background: linear-gradient(145deg, #333, #2a2a2a);
    color: #888;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 2px 5px;
    font-size: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    
    font-weight: 600;
    
} 

.vpn-type-button:hover {
    background: linear-gradient(145deg, #3a3a3a, #333);
    color: #fff;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.4);
}

.vpn-type-button.vpn-active {
    background: linear-gradient(179deg, #b92626, #6b0707);
    color: white;
}

.claimcountdown-timer-display {
    position: absolute;
    left: 50%;
    top: 2px;
    transform: translateX(-50%);
    font-size: 12px;
    color: #fff;
    background: linear-gradient(145deg, rgba(0, 0, 0, .7), rgba(20, 20, 20, .7));
    padding: 0px 13px;
    border-radius: 20px;
    z-index: 3;
    text-align: center;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.countdown-timer:hover .claimcountdown-timer-display {
    background: linear-gradient(145deg, rgba(0, 0, 0, .8), rgba(20, 20, 20, .8));
    transform: translateX(-50%) translateY(-1px);
}

.claimcountdown-timer-display.warning {
    color: #ffcc00;
    animation: pulse-yellow 1.5s infinite;
    border: 1px solid rgba(255, 204, 0, .3);
    text-shadow: 0 0 8px rgba(255, 204, 0, 0.5);
}

.claimcountdown-timer-display.expired {
    color: #ff4444;
    animation: pulse-red 1.5s infinite;
    border: 1px solid rgba(255, 68, 68, .3);
    
    padding: 0px 4px;
    text-shadow: 0 0 8px rgba(255, 68, 68, 0.5);
}

.claimcountdown-timer-display.critical {
    color: #ff4444;
    animation: pulse-red 1.5s infinite;
    border: 1px solid rgba(255, 68, 68, .3);
    text-shadow: 0 0 8px rgba(255, 68, 68, 0.5);
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 68, 68, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 68, 68, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 68, 68, 0);
    }
}

@keyframes pulse-yellow {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 204, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 204, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 204, 0, 0);
    }
}

.ctrl-click-tooltip {
    position: absolute;
    background: linear-gradient(145deg, #333, #2a2a2a);
    color: rgb(255, 255, 255); /* Changed text color to white for better contrast */
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    z-index: 9999;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    animation: tooltipFade 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Floating buttons for countdown timers */
.floating-start-button,
.floating-restart-button {
    position: fixed;
    bottom: -50px;
    right: 20px;
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    min-width: 120px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
}

.floating-start-button::before,
.floating-restart-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.floating-start-button:hover::before,
.floating-restart-button:hover::before {
    left: 100%;
}

.floating-start-button:hover,
.floating-restart-button:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.floating-start-button:active,
.floating-restart-button:active {
    transform: translateY(0);
    transition: all 0.1s ease;
}

/* Adjust position if both buttons are visible */
.floating-start-button + .floating-restart-button-direct {
    right: 180px;
}

.floating-restart-button-direct {
    position: fixed;
    bottom: 20px;
    right: 50px;
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: white;
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    z-index: 99999;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    min-width: 120px;
    box-shadow: 0 2px 8px rgba(244, 67, 54, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-restart-button-direct::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.floating-restart-button-direct:hover::before {
    left: 100%;
}

.floating-restart-button-direct:hover {
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 67, 54, 0.4);
}

.floating-restart-button-direct:active {
    transform: translateY(0);
    transition: all 0.1s ease;
}

.floating-restart-button-direct .close-button {
    position: absolute;
    top: -20px;
    right: -10px;
    background: #ff0000;
    color: #ffffff;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.floating-restart-button-direct .close-button:hover {
    background: #ffffff;
    color: #ff0000;
    transform: scale(1.1);
}

.floating-restart-close {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.floating-restart-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.floating-restart-close:active {
    background: rgba(255, 255, 255, 0.3);
}

/* Floating Restart Button */
#floating-restart-button-direct {
    position: fixed;
    right: 20px;
    bottom: -50px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    z-index: 9999;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transition: all 0.3s ease;
}

#floating-restart-button-direct.visible {
    bottom: 20px;
    opacity: 1;
}

#floating-restart-button-direct .restart-text {
    color: #4CAF50;
    font-weight: bold;
}

#floating-restart-button-direct .close-button {
    color: #666;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

#floating-restart-button-direct .close-button:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Registration prompt styles */
.registration-prompt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(8px);
    animation: fadeIn 0.4s ease;
}

.registration-prompt {
    background: linear-gradient(145deg, #2d2d2d, #262626);
    padding: 35px;
    border-radius: 20px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    animation: scaleIn 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.registration-prompt h3 {
    margin: 0 0 20px 0;
    color: #4CAF50;
    font-size: 20px;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

.registration-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 25px 0;
}

.reg-button {
    padding: 14px 24px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3), -2px -2px 5px rgba(255, 255, 255, 0.05);
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.reg-button:hover {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3), -1px -1px 3px rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.reg-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3), -1px -1px 3px rgba(255, 255, 255, 0.05);
}

.yes-button {
    background: linear-gradient(145deg, #4CAF50, #388E3C);
    color: white;
}

.yes-button:hover {
    background: linear-gradient(145deg, #5cb860, #43a047);
}

.no-button {
    background: linear-gradient(145deg, #333, #2a2a2a);
    color: #ddd;
}

.no-button:hover {
    background: linear-gradient(145deg, #3a3a3a, #333);
}

.later-text {
    color: #999;
    font-size: 14px;
    font-style: italic;
    cursor: pointer;
    transition: color 0.3s ease;
}

.later-text:hover {
    color: #ddd;
    text-decoration: underline;
}

.registration-prompt p {
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.6;
}

#reset-timer-metrics {
    margin-left: 6px;
    background: linear-gradient(145deg, #333, #2a2a2a);
    border: none;
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#reset-timer-metrics:hover:not(:disabled) {
    background: linear-gradient(145deg, #3a3a3a, #333);
    transform: translateY(-1px);
}

#reset-timer-metrics:disabled {
    cursor: not-allowed;
    opacity: 0.5;
    background: linear-gradient(145deg, #333, #2a2a2a);
}

.reg-type-button {
    color: #43a047;
    left: 0px;
    top: 94%;
    position: absolute;
    background: none;
    border: none;
    border-radius: 30px;
    padding: 4px 10px;
    font-size: 15px;
    display: flex;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
}

.reg-type-button:hover {
    opacity: 1;
    transform: scale(1.1);
    color: #5cb860;
}

.reg-type-button i {
    transition: all 0.3s ease;
}

.custom-tooltip {
    position: absolute;
    background: linear-gradient(145deg, #333, #2a2a2a);
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    z-index: 9999;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    animation: tooltipFade 0.3s ease;
}

/* Updated Tooltip Styles */
.updated-tooltip {
    position: fixed;
    background: rgba(0, 0, 0, 0.9);
    color: #4CAF50;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 9999;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    opacity: 1;
    transition: opacity 0.2s ease;
}

.updated-tooltip.hiding {
    opacity: 0;
}

/* Registration Type Tooltip */
.reg-type-tooltip {
    position: fixed;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 9999;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

/* Multiple Dailys Badge Tooltip */
.multiple-dailys-tooltip {
    position: fixed;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 9999;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.dsm-revert-button {
    background: linear-gradient(145deg, #ff4444, #cc0000) !important;
    color: white !important;
    border: none !important;
    border-radius: 21px !important;
    width: 43px !important;
    height: 18px !important;
    font-size: 9px !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: bold !important;
    position: absolute !important;
    right: 36px !important;
    top: 69px !important;
    z-index: 9999;
    box-shadow: 0 4px 8px rgba(255, 68, 68, 0.4) !important;
    letter-spacing: 0.5px !important;
}

.dsm-revert-button:hover {
    background: linear-gradient(145deg, #ff5e5e, #e60000) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 12px rgba(255, 68, 68, 0.5) !important;
}

.dsm-revert-button:focus-visible {
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(255, 68, 68, 0.4) !important;
}

.dsm-revert-button:active {
    transform: scale(0.95) !important;
    box-shadow: 0 2px 4px rgba(255, 68, 68, 0.3) !important;
}

/* INFO BUTTON ALERT STATE */
.countdown-timer .info-button.alert-active {
    color: #ff4444 !important;
    animation: flash-alert 3s 3;
}

.countdown-timer .info-button.alert-active:hover {
    color: #ff0000 !important;
    transform: scale(1.1);
}

@keyframes flash-alert {
    0%, 50% { opacity: 1; }
    25%, 75% { opacity: 0.3; }
}

/* Alerts info section in modal */
.alerts-info {
    background-color: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
    border-radius: 4px;
    padding: 10px;
    margin: 10px 0;
    position: relative;
}

.alerts-info h4 {
    margin: 0 0 8px 0;
    color: #ff4444;
    font-size: 14px;
    font-weight: bold;
}

.alerts-info .alert-checkbox-container {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.alerts-info .alert-checkbox {
    width: 16px;
    height: 16px;
    accent-color: #ff4444;
    cursor: pointer;
}

.alerts-info .alert-checkbox-label {
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    user-select: none;
}

.alert-timestamp {
    color: #ccc;
    font-size: 11px;
    font-style: italic;
    margin-top: 8px;
    margin-bottom: 5px;
    opacity: 0.8;
}

/* Common utility styles for countdown timers */
.hidden {
    display: none;
}