/* Modern professional styles for Illuminated Time */

:root {
    --primary-gradient: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    --secondary-gradient: linear-gradient(135deg, #93c5fd 0%, #60a5fa 100%);
    --success-gradient: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    --danger-gradient: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    --card-shadow: 0 8px 30px rgba(59, 130, 246, 0.08);
    --hover-shadow: 0 12px 40px rgba(59, 130, 246, 0.12);
    --transition-speed: 0.3s;
    --border-radius: 16px;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --border-color: #e0f2fe;
    --background-primary: #ffffff;
    --background-secondary: #f0f9ff;
    --background-tertiary: #e0f2fe;
}

body {
    background: var(--background-secondary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 0% 0%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(37, 99, 235, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Header Styling */
.app-header {
    background: var(--primary-gradient);
    padding: 2.5rem 0;
    margin-bottom: 2rem;
    color: white;
    text-align: center;
    border-radius: 0 0 30px 30px;
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
}

.app-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 50%);
    animation: rotateGradient 15s linear infinite;
}

/* Sun Icon Animation */
.app-header svg {
    animation: glow 2s ease-in-out infinite alternate;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

@keyframes glow {
    from {
        filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
        transform: scale(1);
    }
    to {
        filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.8));
        transform: scale(1.1);
    }
}

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

.app-header h1 {
    margin: 0;
    font-weight: 800;
    font-size: 2.5rem;
    letter-spacing: -0.5px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.app-header p {
    opacity: 0.9;
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

/* Card Styling */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--background-primary);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
}

.card:hover::after {
    opacity: 1;
}

.card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: var(--hover-shadow);
}

/* Illumination effect on hover */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
                rgba(59, 130, 246, 0.1) 0%, 
                transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
    pointer-events: none;
}

.card:hover::before {
    opacity: 1;
}

.card-body {
    padding: 1.75rem;
}

.card-title {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Form Styling */
.form-label {
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
}

.form-control {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 0.875rem 1rem;
    transition: all var(--transition-speed) ease;
    font-size: 1rem;
    background: var(--background-primary);
    color: var(--text-primary);
}

.form-control:hover {
    border-color: #bfdbfe;
}

.form-control:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* Date Input Styling */
input[type="date"] {
    cursor: pointer;
    color: var(--text-secondary);
    position: relative;
    background: var(--background-primary);
}

input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    padding: 8px;
    position: absolute;
    right: 0;
    opacity: 0.6;
    transition: all var(--transition-speed) ease;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
    scale: 1.1;
}

/* Button Styling */
.btn {
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 50%);
    transition: width 0.4s ease, height 0.4s ease;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.btn:active::after {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--primary-gradient);
    border: none;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(59, 130, 246, 0.3);
    color: white;
}

.btn-outline-secondary {
    border: 2px solid var(--border-color);
    background: var(--background-primary);
    color: var(--text-secondary);
}

.btn-outline-secondary:hover {
    background: var(--background-secondary);
    border-color: #60a5fa;
    color: var(--text-primary);
    transform: translateY(-1px);
}

.btn-outline-danger {
    border: 2px solid #ef4444;
    background: var(--background-primary);
    color: #ef4444;
    transition: all var(--transition-speed) ease;
}

.btn-outline-danger:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.2);
}

.btn-outline-danger:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Table Styling */
.table {
    margin: 0;
}

.table th {
    background: var(--background-tertiary);
    color: var(--text-primary);
    font-weight: 600;
    border-bottom: 2px solid var(--border-color);
    padding: 1rem;
    font-size: 0.9375rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.table td {
    padding: 1.25rem 1rem;
    color: var(--text-secondary);
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color);
}

.table tbody tr {
    transition: all var(--transition-speed) ease;
    background: var(--background-primary);
}

.table-hover tbody tr:hover {
    background: var(--background-secondary);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.1);
}

/* Action Buttons */
.action-button {
    padding: 0.5rem;
    border-radius: 8px;
    transition: all var(--transition-speed) ease;
    opacity: 0.8;
}

.action-button:hover {
    opacity: 1;
    transform: scale(1.1);
}

.action-button.edit-button {
    color: #3b82f6;
}

.action-button.edit-button:hover {
    background-color: rgba(59, 130, 246, 0.1);
}

.action-button.clone-button {
    color: #22c55e;
}

.action-button.clone-button:hover {
    background-color: rgba(34, 197, 94, 0.1);
}

.action-button.delete-button {
    color: #ef4444;
}

.action-button.delete-button:hover {
    background-color: rgba(239, 68, 68, 0.1);
}

/* Total Time Card */
.total-time-card {
    background: var(--secondary-gradient);
    color: white;
    position: relative;
    overflow: hidden;
}

.total-time-card::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 50%);
    animation: rotateGradient 20s linear infinite;
}

.total-time-value {
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.table tbody tr {
    animation: slideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: calc(var(--row-index) * 0.1s);
}

/* Alert Styling */
.alert {
    border: none;
    border-radius: var(--border-radius);
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    animation: slideIn 0.3s ease-out forwards;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.08);
}

.alert-success {
    background: linear-gradient(to right, #22c55e11, #16a34a11);
    color: #16a34a;
    border-left: 4px solid #22c55e;
}

.alert-danger {
    background: linear-gradient(to right, #ef444411, #dc262611);
    color: #dc2626;
    border-left: 4px solid #ef4444;
}

.alert-warning {
    background: linear-gradient(to right, #f59e0b11, #d97706);
    color: #d97706;
    border-left: 4px solid #f59e0b;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.empty-state svg {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .app-header {
        padding: 2rem 0;
        border-radius: 0 0 20px 20px;
    }

    .app-header h1 {
        font-size: 2rem;
    }

    .card-body {
        padding: 1.25rem;
    }

    .table td, .table th {
        padding: 1rem 0.75rem;
    }

    .btn {
        padding: 0.75rem 1.25rem;
    }

    .total-time-value {
        font-size: 1.75rem;
    }
    
    /* Time Entry Card Mobile Styles */
    .date-display {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .quick-actions {
        justify-content: flex-start;
        margin-top: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .form-actions .btn {
        width: 100%;
    }
    
    .task-input-group .form-control {
        font-size: 1rem;
        padding: 0.875rem 1rem;
    }
    
    .time-input-group .form-control {
        padding: 0.625rem 0.75rem;
    }
}

/* Import Modal Styling */
.modal-content {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

/* Paste Modal Styling */
#pasteArea {
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.4;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    transition: all var(--transition-speed) ease;
    background: var(--background-secondary);
}

#pasteArea:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    background: var(--background-primary);
}

#pasteArea::placeholder {
    color: var(--text-muted);
    font-style: italic;
}

/* Live preview styling */
.live-preview {
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1rem;
}

.live-preview .table {
    font-size: 0.875rem;
    margin: 0;
}

.live-preview .table th {
    background: var(--background-tertiary);
    font-weight: 600;
    padding: 0.5rem;
    position: sticky;
    top: 0;
    z-index: 10;
}

.live-preview .table td {
    padding: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.live-preview .table tbody tr:nth-child(even) {
    background-color: rgba(59, 130, 246, 0.02);
}

.live-preview .table tbody tr:hover {
    background-color: rgba(59, 130, 246, 0.05);
}

.modal-header {
    background: var(--primary-gradient);
    color: white;
    border-bottom: none;
    padding: 1.5rem;
}

.modal-header .btn-close {
    filter: invert(1);
    opacity: 0.8;
}

.modal-header .btn-close:hover {
    opacity: 1;
}

.modal-title {
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-body {
    padding: 2rem;
}

.csv-preview-container {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--background-secondary);
}

.csv-preview-container .table {
    margin: 0;
    font-size: 0.875rem;
}

.csv-preview-container .table th {
    background: var(--background-tertiary);
    font-weight: 600;
    padding: 0.75rem;
    position: sticky;
    top: 0;
    z-index: 10;
}

.csv-preview-container .table td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--border-color);
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.field-mapping-container .form-select {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    transition: all var(--transition-speed) ease;
    background: var(--background-primary);
}

.field-mapping-container .form-select:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.field-mapping-container .form-check-input:checked {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

.import-summary .alert {
    background: linear-gradient(to right, #3b82f611, #60a5fa11);
    border: 1px solid var(--border-color);
    border-left: 4px solid #3b82f6;
}

.import-summary .alert .row {
    align-items: center;
}

.import-summary .alert strong {
    color: var(--text-primary);
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 1.5rem;
}

/* Highlight mapped fields in preview */
.csv-preview-container .table th.mapped {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
}

.csv-preview-container .table th.mapped::after {
    content: ' ✓';
    font-weight: bold;
}

/* Responsive modal */
@media (max-width: 768px) {
    .modal-dialog {
        margin: 1rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .csv-preview-container {
        max-height: 200px;
    }
}

/* Import progress and status indicators */
.import-status {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
}

.import-progress {
    background: var(--background-primary);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 1rem;
    border-left: 4px solid #3b82f6;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Enhanced table styling for import preview */
.csv-preview-container .table tbody tr:nth-child(even) {
    background-color: rgba(59, 130, 246, 0.02);
}

.csv-preview-container .table tbody tr:hover {
    background-color: rgba(59, 130, 246, 0.05);
}

/* Field mapping validation styles */
.field-mapping-container .form-select.is-invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.field-mapping-container .form-select.is-valid {
    border-color: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.1);
}

/* Time Entry Card Styling */
.time-entry-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.time-entry-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #10b981, #3b82f6, #8b5cf6);
    animation: timerGradient 3s ease-in-out infinite;
}

.date-display {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.current-date {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.date-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.day-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.date-navigation {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quick-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.task-input-group {
    margin-bottom: 0;
}

.task-input-group .form-control {
    font-size: 1.1rem;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    transition: all var(--transition-speed) ease;
}

.task-input-group .form-control:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

.time-input-group {
    margin-bottom: 0;
}

.time-input-group .input-group {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.time-input-group .form-control {
    border: 2px solid var(--border-color);
    border-right: none;
    padding: 0.75rem 1rem;
    font-weight: 600;
    text-align: center;
}

.time-input-group .input-group-text {
    background: var(--background-tertiary);
    border: 2px solid var(--border-color);
    border-left: none;
    color: var(--text-secondary);
    font-weight: 600;
    padding: 0.75rem 0.5rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.form-actions .btn {
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
}

.form-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Time Entries View Styling */
.entries-summary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.entries-summary .badge {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
}

.filter-controls {
    background: var(--background-secondary);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition-speed) ease;
    border: 2px solid var(--border-color);
}

.filter-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.filter-btn.active {
    background: var(--primary-gradient);
    border-color: #3b82f6;
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.search-controls .input-group {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.search-controls .form-control {
    border: 2px solid var(--border-color);
    border-right: none;
    padding: 0.75rem 1rem;
}

.search-controls .form-control:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.search-controls .input-group-text {
    background: var(--background-tertiary);
    border: 2px solid var(--border-color);
    border-left: none;
    color: var(--text-secondary);
}

.search-controls .btn {
    border: 2px solid var(--border-color);
    border-left: none;
    background: var(--background-primary);
    color: var(--text-secondary);
}

.search-controls .btn:hover {
    background: var(--background-secondary);
    color: var(--text-primary);
}

/* Enhanced Table Styling */
.table th {
    background: var(--background-tertiary);
    color: var(--text-primary);
    font-weight: 600;
    border-bottom: 2px solid var(--border-color);
    padding: 1rem;
    font-size: 0.9375rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    position: relative;
}

.table th .btn-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

.table th .btn-link:hover {
    color: var(--text-primary);
}

.table td {
    padding: 1.25rem 1rem;
    color: var(--text-secondary);
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color);
}

.table tbody tr {
    transition: all var(--transition-speed) ease;
    background: var(--background-primary);
}

.table-hover tbody tr:hover {
    background: var(--background-secondary);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

/* Loading State */
#loadingState {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Enhanced Table Cell Styling */
.date-cell {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.date-main {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9375rem;
}

.date-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.task-cell {
    max-width: 300px;
}

.task-text {
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
    word-wrap: break-word;
}

.time-cell {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: center;
}

.time-hours {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9375rem;
}

.time-minutes {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.total-cell {
    text-align: center;
    font-size: 1rem;
    color: var(--text-primary);
}

/* Timer Styling */
.timer-card {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 2px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.timer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #10b981, #3b82f6, #8b5cf6);
    animation: timerGradient 3s ease-in-out infinite;
}

@keyframes timerGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.timer-display {
    text-align: center;
    padding: 2rem 0;
}

.timer-time {
    font-size: 3.5rem;
    font-weight: 800;
    font-family: 'Courier New', monospace;
    color: var(--text-primary);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.timer-task {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 500;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.timer-controls {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.timer-controls .btn {
    min-width: 120px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.timer-controls .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.timer-controls .btn:active {
    transform: translateY(0);
}

/* Timer states */
.timer-card.running {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border-color: #10b981;
}

.timer-card.running .timer-time {
    color: #059669;
    animation: pulse 2s infinite;
}

.timer-card.paused {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #f59e0b;
}

.timer-card.paused .timer-time {
    color: #d97706;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Highlight new entries */
.highlight-new {
    animation: highlightNew 2s ease-out;
}

@keyframes highlightNew {
    0% {
        background-color: rgba(34, 197, 94, 0.2);
        transform: scale(1.02);
    }
    100% {
        background-color: transparent;
        transform: scale(1);
    }
}

/* Timer status badge */
#timerStatus {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
}

/* Import summary enhancements */
.import-summary .alert-info {
    background: linear-gradient(135deg, #3b82f611 0%, #60a5fa11 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.import-summary .alert-info .row > div {
    padding: 0.5rem;
    border-right: 1px solid rgba(59, 130, 246, 0.1);
}

.import-summary .alert-info .row > div:last-child {
    border-right: none;
}

 