/* Timer Edit Modal CSS */

/* Timer Edit Modal Styles */
.timer-edit-modal-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;
}

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

.timer-edit-modal {
    background: linear-gradient(145deg, #2d2d2d, #262626);
    border-radius: 20px;
    max-width: 400px;
    width: 90%;
    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);
    overflow: hidden;
}

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

.timer-edit-modal-header {
    background: linear-gradient(145deg, #333, #2a2a2a);
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.timer-edit-modal-header h3 {
    margin: 0;
    color: #4CAF50;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

.timer-edit-modal-close {
    background: none;
    border: none;
    color: #999;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.timer-edit-modal-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.timer-edit-modal-body {
    padding: 25px;
}



.timer-edit-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
    justify-content: center;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.timer-edit-input-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timer-edit-input-group label {
    color: #4CAF50;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    text-align: center;
}

.timer-edit-input-group input {
    width: 60px;
    padding: 10px 8px;
    background: linear-gradient(145deg, #1a1a1a, #252525);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.timer-edit-input-group input:focus-visible {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

.timer-edit-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.timer-edit-buttons button {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    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 6px rgba(0, 0, 0, 0.1);
}

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

.timer-edit-save:hover {
    background: linear-gradient(145deg, #66BB6A, #4CAF50);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}



.timer-edit-cancel {
    background: linear-gradient(145deg, #666, #555);
    color: white;
}

.timer-edit-cancel:hover {
    background: linear-gradient(145deg, #777, #666);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.timer-edit-buttons button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.timer-edit-buttons button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Timer Edit Tooltip */
.timer-edit-tooltip {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(145deg, #4CAF50, #388E3C);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    z-index: 10000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.timer-edit-tooltip.show {
    opacity: 1;
    transform: translateX(0);
}

/* Premium upgrade modal styling */
.premium-upgrade-modal .timer-edit-modal {
    max-width: 500px;
    text-align: center;
}

.premium-upgrade-content {
    padding: 20px 0;
}

.premium-feature-icon {
    margin-bottom: 20px;
}

.premium-upgrade-content h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 24px;
    font-weight: 600;
}

.premium-upgrade-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.premium-upgrade-content ul {
    text-align: left;
    margin: 20px 0;
    padding-left: 0;
    list-style: none;
}

.premium-upgrade-content li {
    padding: 8px 0;
    color: #333;
    font-weight: 500;
}

.premium-upgrade-buttons {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.premium-upgrade-btn {
    background: linear-gradient(45deg, #f39c12, #e67e22);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.premium-upgrade-btn:hover {
    background: linear-gradient(45deg, #e67e22, #d35400);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
}

.premium-cancel-btn {
    background: #95a5a6;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.premium-cancel-btn:hover {
    background: #7f8c8d;
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    .timer-edit-modal {
        width: 95%;
        margin: 20px;
    }
    
    .timer-edit-modal-header {
        padding: 15px 20px;
    }
    
    .timer-edit-modal-body {
        padding: 20px;
    }
    
    .timer-edit-inputs {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        max-width: none;
    }
    
    .timer-edit-input-group {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .timer-edit-input-group input {
        width: 80px;
    }
    
    .premium-upgrade-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .premium-upgrade-btn,
    .premium-cancel-btn {
        width: 100%;
        max-width: 250px;
    }
}