/* Custom styles for Renopare Time Tracking App */

/* Navigation buttons */
.nav-btn {
    color: #6b7280;
    background: transparent;
}

.nav-btn:hover {
    color: #2563eb;
    background: #eff6ff;
}

.nav-btn.active {
    color: #2563eb;
    background: #dbeafe;
}

/* Mobile navigation */
.mobile-nav-btn {
    color: #6b7280;
}

.mobile-nav-btn.active {
    color: #2563eb;
}

/* Timer display animation */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.timer-running {
    animation: pulse 1s ease-in-out infinite;
    color: #22c55e !important;
}

/* Smooth transitions */
.section {
    animation: fadeIn 0.3s ease-in;
}

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

/* Toast animation */
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.toast-show {
    animation: slideIn 0.3s ease-out;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Card hover effects */
.card-hover {
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card-hover:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Status badges */
.badge {
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-pending {
    background: #fef3c7;
    color: #d97706;
}

.badge-progress {
    background: #dbeafe;
    color: #2563eb;
}

.badge-completed {
    background: #d1fae5;
    color: #059669;
}

.badge-active {
    background: #d1fae5;
    color: #059669;
}

.badge-inactive {
    background: #fee2e2;
    color: #dc2626;
}

/* Table row hover */
tbody tr:hover {
    background: #f8fafc;
}

/* Button transitions */
button {
    transition: all 0.2s ease;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    #timer-display {
        font-size: 2.5rem;
    }
    
    .section {
        padding-bottom: 1rem;
    }
}

/* Print styles for reports */
@media print {
    header, nav, .no-print {
        display: none !important;
    }
    
    .section {
        page-break-inside: avoid;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    /* Add dark mode styles if needed */
}

/* Focus states for accessibility */
input:focus, select:focus, textarea:focus, button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

/* Disabled state */
button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Loading spinner */
.spinner {
    border: 3px solid #f3f4f6;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Entry row colors based on duration */
.entry-short { }
.entry-medium { }
.entry-long { }
