/* Timer Widget Styles */
.timer-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 320px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid #e1e5e9;
    z-index: 1000;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow: hidden;
    transition: all 0.3s ease, transform 0.1s ease;
    will-change: transform;
}

.timer-widget.dragging {
    transition: none;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
    transform: scale(1.02);
}

.timer-widget:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.timer-widget-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
    user-select: none;
}

.timer-widget-title {
    font-weight: 600;
    font-size: 14px;
}

.timer-widget-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.timer-widget-toggle:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.timer-widget-content {
    max-height: 300px;
    overflow-y: auto;
    padding: 0;
}

.timer-widget-loading,
.timer-widget-empty {
    text-align: center;
    color: #6b7280;
}


.timer-widget-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.timer-widget-item:hover {
    background-color: #f9fafb;
}

.timer-widget-item:last-child {
    border-bottom: none;
}

.timer-widget-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.timer-widget-issue {
    font-weight: 600;
    font-size: 14px;
    color: #1f2937;
}

.timer-widget-machine {
    font-size: 12px;
    color: #6b7280;
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 12px;
}

.timer-widget-time {
    font-size: 18px;
    font-weight: 700;
    color: #059669;
    margin-bottom: 8px;
    font-family: 'Courier New', monospace;
}

.timer-widget-footer {
    padding: 12px 16px;
    border-top: 1px solid #f3f4f6;
    background-color: #f9fafb;
}

.timer-widget-new {
    width: 100%;
    padding: 8px 16px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.timer-widget-new:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-1px);
}

/* Scrollbar styling for timer widget content */
.timer-widget-content::-webkit-scrollbar {
    width: 6px;
}

.timer-widget-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.timer-widget-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.timer-widget-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Responsive design */
@media (max-width: 768px) {
    .timer-widget {
        width: calc(100vw - 40px);
        right: 20px;
        left: 20px;
        bottom: 20px;
    }
}

/* Animation for widget appearance */
@keyframes slideInUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.timer-widget {
    animation: slideInUp 0.3s ease-out;
}

/* Pulse animation for active timers */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.timer-widget-item {
    animation: pulse 2s infinite;
} 