/* Franklin CSS */

/* Authentication Overlay */
#auth-overlay {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    backdrop-filter: blur(10px);
    transition: opacity 0.3s ease-in-out;
}

#auth-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

#auth-overlay .text-center {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 3rem 2rem;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#auth-signin-button {
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

#auth-signin-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

#auth-loading .animate-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Timer animation */
.timer-active {
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* Project cost display */
.project-cost {
    font-weight: bold;
    color: #10b981;
}

/* Authentication container */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f9fafb;
}

.auth-box {
    width: 100%;
    max-width: 480px;
    padding: 2rem;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Task status indicators */
.task-status-complete {
    color: #10b981;
}

.task-status-in-progress {
    color: #3b82f6;
}

/* Timer controls */
.timer-controls button {
    transition: all 0.2s;
}

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

/* Milestone and task containers */
.milestone-container {
    border-left: 3px solid #e5e7eb;
    padding-left: 1rem;
    margin-bottom: 1.5rem;
}

.task-container {
    border-left: 2px solid #f3f4f6;
    padding-left: 1rem;
    margin-bottom: 0.75rem;
}

/* Inline editing */
.editable:hover {
    background-color: #f9fafb;
    cursor: pointer;
}

.editable:focus {
    outline: 2px solid #3b82f6;
    background-color: #fff;
}

/* Toast notifications */
.toast {
    position: fixed;
    top: 1rem;
    right: 1rem;
    padding: 0.75rem 1.25rem;
    border-radius: 0.375rem;
    background-color: #fff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    z-index: 50;
    max-width: 24rem;
    transition: all 0.3s ease;
}

.toast-success {
    border-left: 4px solid #10b981;
}

.toast-error {
    border-left: 4px solid #ef4444;
}

.toast-info {
    border-left: 4px solid #3b82f6;
}/* 
Project management enhancements */
.project-item {
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

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

.project-item.active {
    border-left-color: #3b82f6;
    background-color: #eff6ff;
}

.project-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Project details section */
.project-header {
    background: linear-gradient(to right, #eff6ff, #ffffff);
    border-bottom: 1px solid #e5e7eb;
}

.project-stats-card {
    transition: all 0.2s ease;
}

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

/* Search and filter controls */
.search-input {
    transition: all 0.2s ease;
}

.search-input:focus {
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

/* Project actions */
.project-actions {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.project-item:hover .project-actions {
    opacity: 1;
}

/* Improved scrollbars for project list */
.project-list-container {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

.project-list-container::-webkit-scrollbar {
    width: 6px;
}

.project-list-container::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.project-list-container::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 3px;
}

/* Tab content transitions */
.tab-content {
    transition: opacity 0.2s ease-in-out;
}

.tab-content.hidden {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Business hours enforcement toggle */
.business-hours-enforcement {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.business-hours-enforcement:has(input:checked) {
    background-color: #eff6ff;
    border-color: #3b82f6;
}

.business-hours-fields {
    transition: opacity 0.3s ease;
}

.business-hours-fields:has(input[type="time"][value=""]) {
    opacity: 0.6;
}

/* Active timers toggle indicator */
#active-timers-toggle.has-active-timers {
    background-color: #fef2f2;
}

#active-timers-toggle.has-active-timers:hover {
    background-color: #fee2e2;
}

#active-timers-toggle.has-active-timers svg {
    color: #dc2626;
}

#active-timers-toggle.has-active-timers .p-2 {
    background-color: #fef2f2;
}

#active-timers-toggle.has-active-timers:hover .p-2 {
    background-color: #fee2e2;
}

/* SSE Update Indicator */
.timer-indicator.sse-updated {
    animation: sseUpdate 0.5s ease-in-out;
}

@keyframes sseUpdate {
    0% {
        background-color: #dbeafe;
        transform: scale(1);
    }
    50% {
        background-color: #bfdbfe;
        transform: scale(1.02);
    }
    100% {
        background-color: #dbeafe;
        transform: scale(1);
    }
}