/* Urenregistratie PHP - Benelux Sign Styling */

/* ==================== RESET & BASE ==================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f0f0f0;
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

/* ==================== HEADER ==================== */
.main-header {
    background: #1a1a1a;
    padding: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 30px;
}

.logo {
    flex-shrink: 0;
}

.logo-img {
    height: 45px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.main-nav {
    display: flex;
    gap: 5px;
}

.main-nav a {
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    background: transparent;
}

.main-nav a:hover,
.main-nav a.active {
    background: #333;
    color: #fff;
}

/* ==================== MAIN CONTENT ==================== */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 30px;
    min-height: calc(100vh - 200px);
}

/* ==================== FOOTER ==================== */
.main-footer {
    background: #1a1a1a;
    color: #fff;
    padding: 30px;
    text-align: center;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-content p {
    font-size: 14px;
    opacity: 0.8;
}

/* ==================== HEADINGS ==================== */
h2 {
    color: #1a1a1a;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #1a1a1a;
    font-weight: 600;
    font-size: 1.8rem;
}

h3 {
    color: #1a1a1a;
    margin-bottom: 20px;
    font-weight: 600;
}

h4 {
    color: #555;
    margin-bottom: 15px;
    font-weight: 500;
}

/* ==================== ALERTS ==================== */
.alert {
    padding: 15px 25px;
    border-radius: 4px;
    margin-bottom: 25px;
    font-weight: 500;
    font-size: 14px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-left: 4px solid #28a745;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-left: 4px solid #dc3545;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    border-left: 4px solid #ffc107;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
    border-left: 4px solid #17a2b8;
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: #1a1a1a;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: #333;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-small {
    padding: 8px 15px;
    font-size: 12px;
}

.btn-save {
    background: #1a1a1a;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-save:hover {
    background: #333;
    transform: translateY(-2px);
}

/* ==================== FORMS ==================== */
.form-container {
    max-width: 700px;
    margin: 0 auto;
}

.data-form {
    background: white;
    padding: 35px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #ddd;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1a1a1a;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
    background: #fafafa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1a1a1a;
    box-shadow: 0 0 0 2px rgba(26, 26, 26, 0.1);
    background: white;
}

.form-row {
    display: flex;
    gap: 25px;
}

.form-row .form-group {
    flex: 1;
}

.form-actions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.form-actions .btn {
    display: inline-block !important;
    padding: 12px 30px !important;
    font-size: 14px !important;
}

/* ==================== FILTERS ==================== */
.filters {
    background: white;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #ddd;
}

.filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 13px;
}

.filter-group select,
.filter-group input {
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-width: 160px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    background: #fafafa;
    transition: all 0.3s ease;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: #1a1a1a;
}

/* ==================== TABLES ==================== */
.table-container {
    overflow-x: auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #ddd;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.data-table th {
    background: #e0e0e0;
    color: #333;
    font-weight: 600;
    white-space: nowrap;
    text-transform: none;
    font-size: 14px;
    letter-spacing: 0;
}

.data-table tbody tr:hover {
    background: #f8f8f8;
}

.data-table tbody tr.deleted {
    opacity: 0.5;
    background: #fafafa;
}

.data-table .actions {
    white-space: nowrap;
}

.data-table .actions a,
.data-table .actions form {
    display: inline-block;
    margin-right: 8px;
}

/* ==================== STATUS BADGES ==================== */
.status-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.status-badge.active {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-badge.deleted {
    background: #ffebee;
    color: #c62828;
}

.status-badge.definitief {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-badge.niet-definitief {
    background: #fff8e1;
    color: #f57f17;
}

/* ==================== DASHBOARD ==================== */
.dashboard {
    padding: 10px;
}

.dashboard h2 {
    margin-bottom: 30px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card {
    background: #1a1a1a;
    color: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.stat-card:hover {
    transform: translateY(-5px);
    background: #333;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.stat-card h3 {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.stat-card .stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.stat-card .btn {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.stat-card .btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.quick-actions {
    background: white;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #ddd;
}

.quick-actions h3 {
    color: #1a1a1a;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.recent-activity {
    margin-bottom: 40px;
}

.recent-activity h3 {
    color: #1a1a1a;
    margin-bottom: 20px;
}

.info-section {
    margin-top: 40px;
}

.info-section h3 {
    color: #1a1a1a;
    margin-bottom: 25px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.info-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #1a1a1a;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.info-card h4 {
    color: #1a1a1a;
    margin-bottom: 12px;
    font-size: 16px;
}

.info-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.7;
}

/* ==================== UREN PAGE ==================== */
.uren-page {
    padding: 10px;
}

.uren-page h2 {
    margin-bottom: 30px;
}

.week-status {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px 25px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #ddd;
}

.week-status .status {
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.week-status .status.definitief {
    background: #e8f5e9;
    color: #2e7d32;
}

.week-status .status.niet-definitief {
    background: #fff8e1;
    color: #f57f17;
}

.uren-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
}

.uren-table th,
.uren-table td {
    padding: 18px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.uren-table th {
    background: #1a1a1a;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.uren-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.uren-input {
    width: 90px;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
}

.uren-input:focus {
    outline: none;
    border-color: #1a1a1a;
}

.uren-label {
    color: #666;
    font-size: 13px;
    font-weight: 500;
}

.soort-select {
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-width: 160px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    background: white;
    cursor: pointer;
}

.soort-select:focus {
    outline: none;
    border-color: #1a1a1a;
}

.standaarduren-info {
    background: white;
    padding: 25px;
    border-radius: 8px;
    margin-top: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #ddd;
}

.standaarduren-info h4 {
    color: #1a1a1a;
    margin-bottom: 15px;
    font-size: 15px;
}

.standaarduren-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0;
}

.standaarduren-grid span {
    background: #f5f5f5;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 13px;
    color: #1a1a1a;
    font-weight: 500;
    border: 1px solid #ddd;
}

/* ==================== OVERZICHT PAGE ==================== */
.overzicht-page {
    padding: 10px;
}

.overzicht-page h2 {
    margin-bottom: 30px;
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.summary-card {
    background: #1a1a1a;
    color: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.summary-card h4 {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.summary-card .total-hours {
    font-size: 2.8rem;
    font-weight: 700;
}

.summary-card .total-count {
    font-size: 2.8rem;
    font-weight: 700;
}

.uren-per-soort {
    margin-bottom: 40px;
}

.uren-per-soort h3 {
    color: #1a1a1a;
    margin-bottom: 20px;
}

.soort-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
}

.soort-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.soort-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.soort-card h5 {
    color: #1a1a1a;
    margin-bottom: 10px;
    font-size: 14px;
}

.soort-card .uren-aantal {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1a1a;
}

/* ==================== STANDAARDUREN PAGE ==================== */
.standaarduren-page {
    padding: 10px;
}

.standaarduren-page h2 {
    margin-bottom: 30px;
}

.uren-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.dag-input {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dag-input label {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 13px;
}

.dag-input input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
}

.dag-input input:focus {
    outline: none;
    border-color: #1a1a1a;
}

.total-per-week {
    background: #1a1a1a;
    color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 25px;
}

.total-per-week strong {
    font-size: 1.3rem;
}

/* ==================== ACTIONS BAR ==================== */
.actions-bar {
    margin-bottom: 25px;
}

/* ==================== NO DATA ==================== */
.no-data {
    text-align: center;
    padding: 60px 40px;
    color: #999;
    font-size: 16px;
    font-style: italic;
}

/* ==================== TEXT HELPERS ==================== */
.text-muted {
    color: #999;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 992px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    
    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .main-nav a {
        padding: 8px 15px;
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 25px 15px;
    }
    
    .header-content {
        padding: 15px;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .main-nav {
        gap: 3px;
    }
    
    .main-nav a {
        padding: 8px 12px;
        font-size: 11px;
    }
    
    .user-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .user-name {
        font-size: 12px;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .filter-form {
        flex-direction: column;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .filter-group select,
    .filter-group input {
        width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons .btn {
        width: 100%;
    }
    
    .uren-table {
        font-size: 13px;
    }
    
    .uren-table th,
    .uren-table td {
        padding: 12px 10px;
    }
    
    .week-status {
        flex-direction: column;
        gap: 15px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== USER MENU ==================== */
.user-menu {
    position: relative;
    z-index: 1002;
}

.user-dropdown {
    position: relative;
}

.user-dropdown-btn {
    background: transparent;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 8px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
}

.user-dropdown-btn:hover {
    background: #333;
    border-color: #666;
}

.user-name {
    font-weight: 500;
    font-size: 14px;
}

.dropdown-arrow {
    color: #999;
    font-size: 10px;
}

.user-dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    background: white;
    min-width: 180px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    z-index: 1003;
    overflow: hidden;
    padding: 5px 0;
}

.user-dropdown-content::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid white;
}

.user-dropdown.show > .user-dropdown-content {
    display: block;
}

.user-dropdown-content {
    padding: 8px 0 5px 0;
}

.user-dropdown-content a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    font-family: 'Montserrat', sans-serif;
    white-space: nowrap;
}

.user-dropdown-content a:hover {
    background: #f0f0f0;
    color: #1a1a1a;
}

.user-dropdown-content a:first-child {
    border-bottom: 1px solid #eee;
}

/* ==================== LOGIN PAGE ==================== */
body.login-page {
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.login-container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
}

.login-box {
    background: white;
    border-radius: 12px;
    padding: 50px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-logo {
    height: 60px;
    width: auto;
    margin-bottom: 25px;
}

.login-header h1 {
    color: #1a1a1a;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.login-header p {
    color: #666;
    font-size: 14px;
}

.login-form {
    margin-bottom: 30px;
}

.login-form .form-group {
    margin-bottom: 25px;
}

.login-form .form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.login-form .form-group input {
    padding: 15px 16px;
    font-size: 15px;
}

.btn-login {
    width: 100%;
    padding: 15px;
    font-size: 15px;
}

.login-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.login-footer p {
    color: #999;
    font-size: 13px;
}

