/* Robatime - Tijdkloksysteem voor Bitbull Computers */

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --success-color: #27ae60;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --light-bg: #f8f9fa;
}

/* General */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--light-bg);
}

main {
    flex: 1;
}

/* Navbar */
.navbar-brand {
    font-weight: 600;
    font-size: 1.25rem;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.login-card {
    width: 100%;
    max-width: 400px;
    border-radius: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.login-header {
    background-color: var(--primary-color);
    color: white;
    border-radius: 1rem 1rem 0 0;
    padding: 2rem;
    text-align: center;
}

.login-header h1 {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.login-header p {
    margin-bottom: 0;
    opacity: 0.8;
}

.login-body {
    padding: 2rem;
}

/* Cards */
.card {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: white;
    border-bottom: 1px solid #eee;
    font-weight: 600;
    padding: 1rem 1.25rem;
}

/* Status badges */
.badge-clocked-in {
    background-color: var(--success-color);
}

.badge-clocked-out {
    background-color: #6c757d;
}

/* Tables */
.table {
    margin-bottom: 0;
}

.table th {
    font-weight: 600;
    background-color: #f8f9fa;
    border-top: none;
}

.table-success {
    background-color: #d4edda !important;
}

.table-danger {
    background-color: #f8d7da !important;
}

/* Status indicators */
.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
}

.status-dot.active {
    background-color: var(--success-color);
}

.status-dot.inactive {
    background-color: #6c757d;
}

.status-dot.clocked-in {
    background-color: var(--success-color);
    animation: pulse 2s infinite;
}

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

/* Dashboard widgets */
.widget-card {
    text-align: center;
    padding: 1.5rem;
}

.widget-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.widget-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.widget-label {
    color: #6c757d;
    font-size: 0.875rem;
}

/* Employee list */
.employee-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.employee-item:last-child {
    border-bottom: none;
}

.employee-info {
    display: flex;
    align-items: center;
}

.employee-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 1rem;
}

.employee-name {
    font-weight: 600;
    margin-bottom: 0;
}

.employee-email {
    color: #6c757d;
    font-size: 0.875rem;
}

/* Time entries */
.time-entry {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}

.time-entry:last-child {
    border-bottom: none;
}

.time-entry-times {
    font-family: monospace;
    font-size: 1rem;
}

.time-entry-duration {
    margin-left: auto;
    font-weight: 600;
}

/* Week overview */
.week-day {
    padding: 0.75rem;
    border-bottom: 1px solid #eee;
}

.week-day:last-child {
    border-bottom: none;
}

.week-day-name {
    font-weight: 600;
    min-width: 100px;
    display: inline-block;
}

.week-day-hours {
    font-family: monospace;
}

/* Forms */
.form-label {
    font-weight: 500;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #1a252f;
    border-color: #1a252f;
}

/* Alerts */
.alert {
    border-radius: 0.5rem;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1rem;
    }

    .card-header {
        padding: 0.75rem 1rem;
    }

    .widget-value {
        font-size: 1.5rem;
    }
}

/* Print styles */
@media print {
    .navbar, .btn, footer {
        display: none !important;
    }

    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
