/* Custom styles for Employee Time Tracker */

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Card styles */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-2px);
}

.card-header {
    border-radius: 15px 15px 0 0 !important;
    font-weight: 600;
}

/* Dashboard stats */
.stat-card {
    border-left: 4px solid;
    border-radius: 10px;
}

.stat-card.primary {
    border-left-color: #0d6efd;
}

.stat-card.success {
    border-left-color: #198754;
}

.stat-card.warning {
    border-left-color: #ffc107;
}

.stat-card.info {
    border-left-color: #0dcaf0;
}

.stat-icon {
    font-size: 2.5rem;
    opacity: 0.3;
}

/* Session timer */
.timer-display {
    font-size: 3rem;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    color: #198754;
}

/* Task list */
.task-item {
    border-left: 4px solid #dee2e6;
    transition: all 0.2s ease;
}

.task-item:hover {
    background-color: #f8f9fa;
}

.task-item.status-pending {
    border-left-color: #6c757d;
}

.task-item.status-in_progress {
    border-left-color: #0d6efd;
}

.task-item.status-completed {
    border-left-color: #198754;
}

.task-item.status-on_hold {
    border-left-color: #ffc107;
}

.task-item.status-cancelled {
    border-left-color: #dc3545;
}

/* Status badges */
.badge-status {
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
}

/* Login/Register forms */
.auth-card {
    max-width: 450px;
    margin: 2rem auto;
}

.auth-card .card-body {
    padding: 2rem;
}

/* Table styles */
.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

/* Report cards */
.report-card {
    text-align: center;
    padding: 1.5rem;
}

.report-card .display-4 {
    font-weight: bold;
    color: #0d6efd;
}

/* Task form in modal */
.task-form-container {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

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

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

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

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

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .timer-display {
        font-size: 2rem;
    }
    
    .stat-card {
        margin-bottom: 1rem;
    }
}

/* Print styles */
@media print {
    .navbar, .btn, footer {
        display: none !important;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
}
