/* Custom styles for RegTime Pro */

/* Timer Display Animation */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.timer-running {
    animation: pulse 2s infinite;
    color: #dc2626 !important;
}

/* Navigation Active States */
.nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* Custom scrollbar for better mobile experience */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

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

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

/* Enhanced form focus states */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

/* Timer button states */
.timer-button {
    transition: all 0.3s ease;
    transform: scale(1);
}

.timer-button:hover {
    transform: scale(1.05);
}

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

.timer-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: scale(1) !important;
}

/* Card hover effects */
.card-hover {
    transition: all 0.3s ease;
}

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

/* Status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-active {
    background-color: #dcfce7;
    color: #166534;
}

.status-inactive {
    background-color: #fee2e2;
    color: #991b1b;
}

.status-pending {
    background-color: #fef3c7;
    color: #92400e;
}

.status-completed {
    background-color: #dbeafe;
    color: #1e40af;
}

/* Loading spinner */
.spinner {
    border: 2px solid #f3f4f6;
    border-top: 2px solid #0ea5e9;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

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

/* Mobile optimizations */
@media (max-width: 768px) {
    .grid-responsive {
        grid-template-columns: 1fr;
    }
    
    .text-responsive {
        font-size: 1.5rem;
    }
    
    .p-responsive {
        padding: 1rem;
    }
}

/* Print styles for reports */
@media print {
    .no-print {
        display: none !important;
    }
    
    .print-break {
        page-break-before: always;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .bg-white {
        box-shadow: none !important;
    }
}

/* Table styles */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.data-table th,
.data-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.data-table th {
    background-color: #f9fafb;
    font-weight: 600;
    color: #374151;
    position: sticky;
    top: 0;
}

.data-table tr:hover {
    background-color: #f9fafb;
}

/* Form validation styles */
.field-error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
}

.error-message {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Success/error notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    color: white;
    font-weight: 500;
    z-index: 1000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background-color: #059669;
}

.notification.error {
    background-color: #dc2626;
}

.notification.warning {
    background-color: #d97706;
}

.notification.info {
    background-color: #0ea5e9;
}

/* Regulatory-specific color scheme */
.regulatory-gradient {
    background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%);
}

.regulatory-text {
    color: #0369a1;
}

.regulatory-bg {
    background-color: #f0f9ff;
}

/* Enhanced mobile navigation */
@media (max-width: 768px) {
    #mobile-menu {
        transition: all 0.3s ease;
    }
    
    #mobile-menu.show {
        display: block;
    }
    
    .mobile-nav-item {
        transition: background-color 0.2s ease;
    }
    
    .mobile-nav-item:active {
        background-color: rgba(255, 255, 255, 0.2);
    }
}

/* Chart container responsive */
.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

@media (max-width: 640px) {
    .chart-container {
        height: 250px;
    }
}

/* Time entry cards */
.time-entry-card {
    border-left: 4px solid transparent;
    transition: all 0.2s ease;
}

.time-entry-card.billable {
    border-left-color: #059669;
}

.time-entry-card.non-billable {
    border-left-color: #6b7280;
}

.time-entry-card:hover {
    background-color: #f8fafc;
    transform: translateX(2px);
}

/* Utility classes for regulatory focus */
.focus-regulatory:focus {
    outline: none;
    ring: 2px;
    ring-color: #0ea5e9;
    border-color: #0ea5e9;
}

/* Enhanced button styles */
.btn-primary {
    background-color: #0ea5e9;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background-color: #0284c7;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: #6b7280;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background-color: #4b5563;
}

.btn-outline {
    background-color: transparent;
    color: #0ea5e9;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    border: 1px solid #0ea5e9;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-outline:hover {
    background-color: #0ea5e9;
    color: white;
}