/* WorkHours Tracker Main CSS */

body {
    font-size: .875rem;
    background-color: #f8f9fa;
}

.feather {
    width: 16px;
    height: 16px;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 48px 0 0;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}

.sidebar-sticky {
    position: relative;
    top: 0;
    height: calc(100vh - 48px);
    padding-top: .5rem;
    overflow-x: hidden;
    overflow-y: auto;
}

.sidebar .nav-link {
    font-weight: 500;
    color: #333;
    padding: .5rem 1rem;
}

.sidebar .nav-link:hover {
    color: #007bff;
}

.sidebar .nav-link.active {
    color: #2470dc;
}

.sidebar .nav-link .feather {
    margin-right: 4px;
    color: #727272;
}

.sidebar .nav-link.active .feather {
    color: inherit;
}

/* Content */
.main-content {
    margin-top: 20px;
}

.card {
    margin-bottom: 20px;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

/* Time entry table */
.time-entry-table th {
    background-color: #f1f1f1;
}

.time-entry-table .weekend-day {
    background-color: #fff3cd; /* Yellow background for weekends */
}

.time-entry-table .late-arrival {
    color: #dc3545; /* Red text for late arrivals */
    font-weight: bold;
}

/* Overtime warning */
.overtime-warning {
    color: #dc3545;
    font-weight: bold;
    background-color: #fff3cd;
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
    border: 1px solid #ffeeba;
}

/* Dashboard stats */
.dashboard-stat {
    text-align: center;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.dashboard-stat h3 {
    margin-bottom: 0;
    font-weight: 300;
}

.dashboard-stat p {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.stat-primary {
    background-color: #cfe2ff;
    color: #084298;
}

.stat-success {
    background-color: #d1e7dd;
    color: #0f5132;
}

.stat-warning {
    background-color: #fff3cd;
    color: #664d03;
}

.stat-danger {
    background-color: #f8d7da;
    color: #842029;
}

/* Time Entry Form */
.time-entry-form {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* Login and registration forms */
.form-signin {
    max-width: 400px;
    padding: 1rem;
    margin: auto;
}

.form-signin .form-floating:focus-within {
    z-index: 2;
}

.form-signin input[type="text"],
.form-signin input[type="email"],
.form-signin input[type="password"] {
    margin-bottom: 10px;
    border-radius: 5px;
}

/* Export Options */
.export-option {
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    transition: all 0.3s;
}

.export-option:hover {
    background-color: #f8f9fa;
    cursor: pointer;
}

.export-option.selected {
    background-color: #e9ecef;
    border-color: #6c757d;
}

/* Settings page */
.settings-section {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* Admin user table */
.user-table {
    background-color: #fff;
}

.user-table th {
    background-color: #f1f1f1;
}

/* Charts */
.chart-container {
    height: 300px;
    margin-bottom: 20px;
}
