/**
 * Countdown Timer Tool - Modern SaaS Style
 * Clean, professional design inspired by Monday.com and ClickUp
 */

.countdown-timer-tool {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
}

.timer-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 32px;
    margin-bottom: 24px;
}

/* Timer Setup Section */
.timer-setup {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

@media (max-width: 768px) {
    .timer-setup {
        grid-template-columns: 1fr;
    }
}

/* Input Groups */
.timer-inputs {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.input-group .form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s;
    box-sizing: border-box;
}

.input-group .form-control:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Quick Timers */
.quick-timers {
    margin-top: 8px;
}

.quick-timers h4 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 12px 0;
}

.quick-timer-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.quick-timer-btn {
    padding: 10px 12px;
    background: #f3f4f6;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.2s;
}

.quick-timer-btn:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
    color: #1f2937;
}

.quick-timer-btn:active {
    transform: scale(0.98);
}

/* Timer Controls */
.timer-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-primary {
    background: #6366f1;
    color: white;
}

.btn-primary:hover {
    background: #4f46e5;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-secondary {
    background: #10b981;
    color: white;
}

.btn-secondary:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-outline {
    background: white;
    color: #6b7280;
    border: 2px solid #e5e7eb;
}

.btn-outline:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #374151;
}

.btn-success {
    background: #8b5cf6;
    color: white;
}

.btn-success:hover {
    background: #7c3aed;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.btn:active {
    transform: scale(0.98);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Timer Display */
.timer-display {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.countdown-display {
    width: 100%;
}

.timer-title {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    text-align: center;
    margin-bottom: 32px;
}

.countdown-time {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.time-unit {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.time-value {
    display: block;
    font-size: 48px;
    font-weight: 700;
    color: white;
    line-height: 1;
    margin-bottom: 8px;
}

.time-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .countdown-time {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .time-value {
        font-size: 36px;
    }
}

/* Progress Bar */
.timer-progress {
    margin-bottom: 24px;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #f3f4f6;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    border-radius: 6px;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.progress-text {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
}

/* Timer Status */
.timer-status {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #6366f1;
    padding: 12px;
    background: #f0f1ff;
    border-radius: 8px;
}

/* Setup Display */
.timer-setup-display {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.setup-message h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 12px 0;
}

.setup-message p {
    font-size: 16px;
    color: #6b7280;
    margin: 0;
}

/* Saved Timers */
.saved-timers {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 24px;
}

.saved-timers h4 {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 16px 0;
}

.saved-timers-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.no-timers {
    text-align: center;
    color: #9ca3af;
    font-size: 14px;
    padding: 24px;
}

.saved-timer-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: #f9fafb;
    border: 2px solid #f3f4f6;
    border-radius: 8px;
    transition: all 0.2s;
}

.saved-timer-item:hover {
    background: #f3f4f6;
    border-color: #e5e7eb;
}

.timer-info {
    flex: 1;
}

.timer-name {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.timer-date {
    font-size: 13px;
    color: #6b7280;
}

.timer-actions {
    display: flex;
    gap: 8px;
}

.load-timer-btn,
.delete-timer-btn {
    padding: 8px 14px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.load-timer-btn {
    background: #6366f1;
    color: white;
}

.load-timer-btn:hover {
    background: #4f46e5;
    transform: translateY(-1px);
}

.delete-timer-btn {
    background: #ef4444;
    color: white;
}

.delete-timer-btn:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

/* Status Messages */
.status-message {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.status-success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid #10b981;
}

.status-error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

.status-info {
    background: #dbeafe;
    color: #1e40af;
    border-left: 4px solid #3b82f6;
}

/* Responsive Adjustments */
@media (max-width: 576px) {
    .timer-container,
    .saved-timers {
        padding: 20px;
    }
    
    .timer-controls {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .saved-timer-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .timer-actions {
        width: 100%;
    }
    
    .load-timer-btn,
    .delete-timer-btn {
        flex: 1;
    }
}


