/* Reset en basis styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* Login pagina */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #f5f5f5;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-box {
    background: white;
    padding: 50px 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    border: 1px solid #e0e0e0;
    width: 100%;
}

.login-box h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 12px;
    margin-top: 0;
    font-size: 32px;
    font-weight: 600;
}

.subtitle {
    text-align: center;
    color: #555;
    margin-bottom: 35px;
    font-size: 15px;
}

/* Input met iconen */
.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon i {
    position: absolute;
    left: 12px;
    color: #666;
    font-size: 16px;
    z-index: 2;
    pointer-events: none;
}

.input-with-icon input {
    width: 100%;
    padding: 10px 12px 10px 42px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s;
    background-color: #fff;
    color: #333;
    text-indent: 0;
}

.input-with-icon input:focus {
    outline: none;
    border-color: #3498db;
}

.input-with-icon:focus-within i {
    color: #3498db;
}

/* Navigatie */
.navbar {
    background-color: #2c3e50;
    color: white;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-container h2 {
    font-size: 20px;
    font-weight: 600;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-link {
    color: #ecf0f1;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background-color 0.3s;
    font-size: 14px;
}

.nav-link:hover {
    background-color: #34495e;
}

.nav-link.active {
    background-color: #3498db;
    color: white;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

h1 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 32px;
}

.welcome {
    color: #666;
    margin-bottom: 30px;
}

/* Formulieren */
.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 500;
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="date"],
.form-group input[type="time"],
.form-group input[type="number"],
.form-group input[type="password"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-danger {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

.btn-danger {
    background-color: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background-color: #c0392b;
}

.btn-small {
    padding: 5px 12px;
    font-size: 12px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    display: inline-block;
}

.btn-small:hover {
    background-color: #2980b9;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

/* Statistieken */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.stat-card h3 {
    color: #666;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: #2c3e50;
}

/* Tabellen */
.section {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.section h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 24px;
}

.table-container {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table thead {
    background-color: #f8f9fa;
}

.data-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 2px solid #ddd;
}

.data-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.data-table tbody tr:hover {
    background-color: #f8f9fa;
}

.description-cell {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Status badges */
.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: capitalize;
}

.status-open {
    background-color: #fff3cd;
    color: #856404;
}

.status-afgerond {
    background-color: #d4edda;
    color: #155724;
}

.status-gefactureerd {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* Messages */
.message {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.message-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
}

/* Filter sectie */
.filter-section {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.quick-filters {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.quick-filters h3 {
    color: #2c3e50;
    font-size: 16px;
    margin-bottom: 12px;
    font-weight: 600;
}

.quick-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.quick-filter-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background-color: #f8f9fa;
    color: #333;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    font-family: inherit;
}

.quick-filter-btn:hover {
    background-color: #e9ecef;
    border-color: #3498db;
}

.quick-filter-btn.active {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}

.filter-form .form-row {
    margin-bottom: 20px;
}

/* Summary box */
.summary-box {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.summary-item {
    color: #333;
    font-size: 14px;
}

.summary-item strong {
    color: #2c3e50;
    margin-right: 8px;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 40px;
    color: #666;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.empty-state a {
    color: #3498db;
    text-decoration: none;
}

.empty-state a:hover {
    text-decoration: underline;
}

/* Overuren styling */
.overuren-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.overuren-item {
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border-left: 4px solid #3498db;
}

.overuren-item.overuren-positief {
    background-color: #d4edda;
    border-left-color: #28a745;
    color: #155724;
}

.overuren-item.overuren-uitbetaling {
    background-color: #fff3cd;
    border-left-color: #ffc107;
    color: #856404;
}

.overuren-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.overuren-summary-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    text-align: center;
}

.overuren-summary-item h3 {
    color: #2c3e50;
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 600;
}

.overuren-summary-item .summary-number {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin: 10px 0;
}

.overuren-summary-item.overuren-positief {
    border-color: #28a745;
    background-color: #d4edda;
}

.overuren-summary-item.overuren-positief h3,
.overuren-summary-item.overuren-positief .summary-number {
    color: #155724;
}

.overuren-summary-item.overuren-uitbetaling {
    border-color: #ffc107;
    background-color: #fff3cd;
}

.overuren-summary-item.overuren-uitbetaling h3,
.overuren-summary-item.overuren-uitbetaling .summary-number {
    color: #856404;
}

.period-navigation {
    padding: 15px;
    background-color: #e9ecef;
    border-radius: 4px;
    margin-top: 15px;
}

/* Uren formulier */
.uren-form {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Stopwatch styling */
.stopwatch-container {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.stopwatch-display {
    font-size: 72px;
    font-weight: 700;
    color: #2c3e50;
    font-family: 'Courier New', monospace;
    margin: 20px 0;
}

.stopwatch-info {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.btn-large {
    padding: 15px 40px;
    font-size: 18px;
}

/* Responsive */
@media (max-width: 768px) {
    .stopwatch-display {
        font-size: 48px;
    }
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .table-container {
        overflow-x: scroll;
    }
}

