/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* PAGE CONTAINER */
.page-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* HEADER */
.main-header {
    background: white;
    border-bottom: 2px solid #FA8072;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.site-title {
    margin: 0;
}

.site-title .logo {
    color: #FA8072;
    text-decoration: none;
    font-size: 1.8em;
    font-weight: bold;
}

.site-title .logo:hover {
    color: #e57366;
}

/* NAVIGATION */
.main-navigation {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
}

.welcome {
    font-weight: bold;
}

.role {
    background: #FA8072;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8em;
}

.nav-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-link {
    color: #333;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav-link:hover {
    background-color: #f0f0f0;
}

.nav-link.logout {
    background-color: #dc3545;
    color: white;
}

.nav-link.logout:hover {
    background-color: #c82333;
}

/* MAIN CONTENT */
.main-content {
    flex: 1;
    padding: 40px 20px;
}

/* WELCOME SECTION */
.welcome-section {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.welcome-section h2 {
    color: #FA8072;
    margin-bottom: 15px;
    font-size: 2em;
}

.welcome-section p {
    font-size: 1.2em;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* AUTH OPTIONS */
.auth-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.option-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border: 1px solid #eee;
    transition: transform 0.3s, box-shadow 0.3s;
}

.option-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.option-card h2 {
    color: #FA8072;
    margin-bottom: 15px;
}

.option-card p {
    margin-bottom: 20px;
    color: #666;
}

/* AUTH CONTAINERS */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.auth-form-container {
    width: 100%;
    max-width: 400px;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.auth-form-container h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #FA8072;
}

/* FORM STYLES */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

input[type="text"],
input[type="password"],
input[type="email"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

input:focus {
    border-color: #FA8072;
    outline: none;
    box-shadow: 0 0 5px rgba(250, 128, 114, 0.3);
}

small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 0.9em;
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #FA8072;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    text-align: center;
}

.btn:hover {
    background-color: #e57366;
}

.btn-primary {
    background-color: #FA8072;
    width: 100%;
}

.btn-secondary {
    background-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid #FA8072;
    color: #FA8072;
}

.btn-outline:hover {
    background-color: #FA8072;
    color: white;
}

/* DASHBOARD */
.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
}

.dashboard-welcome {
    background: white;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.dashboard-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.action-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

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

.action-card h3 {
    color: #FA8072;
    margin-bottom: 10px;
}

.action-card p {
    margin-bottom: 20px;
    color: #666;
}

/* FOOTER */
.main-footer {
    background: white;
    border-top: 1px solid #ddd;
    padding: 20px;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    color: #666;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .main-navigation {
        justify-content: center;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .auth-options {
        grid-template-columns: 1fr;
    }
    
    .main-content {
        padding: 20px 15px;
    }
    
    .welcome-section {
        padding: 30px 15px;
    }
    
    .option-card {
        padding: 20px;
    }
    
    .dashboard-actions {
        grid-template-columns: 1fr;
    }
}

/* Gebruikersbeheer */
.users-container {
    max-width: 1400px;
    margin: 0 auto;
}

.page-header {
    background: white;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.page-header h2 {
    color: #FA8072;
    margin-bottom: 10px;
}

/* Filter card */
.filter-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.filter-card h3 {
    margin-bottom: 15px;
    color: #333;
}

.filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 20px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    margin-bottom: 5px;
    font-weight: bold;
}

.filter-group select,
.filter-group input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.filter-actions {
    display: flex;
    gap: 10px;
}

/* Table styles */
.users-table-container {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.table-responsive {
    overflow-x: auto;
}

.users-table {
    width: 100%;
    border-collapse: collapse;
}

.users-table th {
    background: #f8f9fa;
    padding: 12px;
    text-align: left;
    font-weight: bold;
    border-bottom: 2px solid #dee2e6;
}

.users-table td {
    padding: 12px;
    border-bottom: 1px solid #dee2e6;
}

.users-table tr:hover {
    background: #f8f9fa;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8em;
    font-weight: bold;
}

.badge-info {
    background: #17a2b8;
    color: white;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
}

.status-badge.active {
    background: #28a745;
    color: white;
}

.status-badge.inactive {
    background: #dc3545;
    color: white;
}

/* Role select */
.role-select {
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.role-form {
    margin: 0;
}

/* Action buttons */
.action-buttons {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-warning {
    background: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background: #e0a800;
}

.btn-success {
    background: #28a745;
}

.btn-success:hover {
    background: #218838;
}

.btn-danger {
    background: #dc3545;
}

.btn-danger:hover {
    background: #c82333;
}

.inline-form {
    display: inline;
}

.text-muted {
    color: #6c757d;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin: 25px 0;
}

.page-link {
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    text-decoration: none;
    color: #007bff;
}

.page-link:hover {
    background: #e9ecef;
}

.page-link.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.pagination-info {
    text-align: center;
    color: #6c757d;
    font-size: 0.9em;
}

.no-results {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

/* Responsive */
@media (max-width: 768px) {
    .filter-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .filter-actions {
        justify-content: center;
    }
    
    .users-table {
        font-size: 0.9em;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
}

/* Gebruikersbeheer - Vereenvoudigde versie */
.users-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-header {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.users-table-container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.table-responsive {
    overflow-x: auto;
}

.users-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.users-table th,
.users-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.users-table th {
    background-color: #f8f9fa;
    font-weight: bold;
}

.users-table tr:hover {
    background-color: #f5f5f5;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
}

.status-badge.active {
    background: #28a745;
    color: white;
}

.status-badge.inactive {
    background: #dc3545;
    color: white;
}

.no-results {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

/* Gebruikersbeheer */
.users-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.page-header {
    background: white;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.page-header h2 {
    color: #FA8072;
    margin-bottom: 10px;
}

/* Filter card */
.filter-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.filter-row {
    display: flex;
    gap: 15px;
    align-items: end;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    margin-bottom: 5px;
    font-weight: bold;
}

.filter-group input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.filter-actions {
    display: flex;
    gap: 10px;
}

/* Table styles */
.users-table-container {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.table-responsive {
    overflow-x: auto;
}

.users-table {
    width: 100%;
    border-collapse: collapse;
}

.users-table th {
    background: #f8f9fa;
    padding: 12px;
    text-align: left;
    font-weight: bold;
    border-bottom: 2px solid #dee2e6;
}

.users-table td {
    padding: 12px;
    border-bottom: 1px solid #dee2e6;
}

.users-table tr:hover {
    background: #f8f9fa;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8em;
    font-weight: bold;
}

.badge-info {
    background: #17a2b8;
    color: white;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
}

.status-badge.active {
    background: #28a745;
    color: white;
}

.status-badge.inactive {
    background: #dc3545;
    color: white;
}

/* Role select */
.role-select {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.role-form {
    margin: 0;
}

/* Action buttons */
.action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-warning {
    background: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background: #e0a800;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

.inline-form {
    display: inline;
}

.text-muted {
    color: #6c757d;
    font-size: 0.9em;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.page-link {
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    text-decoration: none;
    color: #007bff;
    display: inline-block;
}

.page-link:hover {
    background: #e9ecef;
}

.page-link.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.pagination-info {
    text-align: center;
    color: #6c757d;
    font-size: 0.9em;
    margin-top: 10px;
}

.no-results {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

/* Responsive */
@media (max-width: 768px) {
    .filter-row {
        flex-direction: column;
    }
    
    .filter-group {
        min-width: auto;
    }
    
    .users-table {
        font-size: 0.9em;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .users-table td, .users-table th {
        padding: 8px 4px;
    }
}

/* Results info */
.results-info {
    background: #e9ecef;
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 0.9em;
    color: #495057;
}

/* Limit form */
.limit-form {
    display: flex;
    align-items: end;
}

.limit-form .filter-group {
    min-width: auto;
    margin-bottom: 0;
}

.limit-form select {
    padding: 8px;
}

/* Filter row aanpassing */
.filter-row {
    display: flex;
    gap: 20px;
    align-items: end;
    flex-wrap: wrap;
}

.filter-form {
    display: flex;
    gap: 15px;
    align-items: end;
    flex: 1;
}

.filter-form .filter-group {
    flex: 1;
    margin-bottom: 0;
}

/* Debug info (tijdelijk) */
.debug-info {
    background: #fff3cd !important;
    border: 1px solid #ffeaa7;
    color: #856404;
}

/* Groepenbeheer */
.groups-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.admin-notice {
    background: #e3f2fd;
    padding: 10px 15px;
    border-radius: 5px;
    margin-top: 10px;
    font-size: 0.9em;
}

/* Action bar */
.action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    flex-wrap: wrap;
    gap: 15px;
}

.share-link {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.share-link code {
    background: #f8f9fa;
    padding: 5px 10px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9em;
}

/* Groups table */
.groups-table-container {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.groups-table {
    width: 100%;
    border-collapse: collapse;
}

.groups-table th {
    background: #f8f9fa;
    padding: 12px;
    text-align: left;
    font-weight: bold;
    border-bottom: 2px solid #dee2e6;
}

.groups-table td {
    padding: 12px;
    border-bottom: 1px solid #dee2e6;
    vertical-align: top;
}

.groups-table tr:hover {
    background: #f8f9fa;
}

.member-count {
    font-weight: bold;
    color: #FA8072;
}

.btn-link {
    color: #007bff;
    text-decoration: none;
    margin-left: 10px;
    font-size: 0.9em;
}

.btn-link:hover {
    text-decoration: underline;
}

/* Form container */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.form-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-card h2 {
    color: #FA8072;
    margin-bottom: 20px;
    text-align: center;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.form-actions .btn {
    flex: 1;
}

textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    font-family: Arial, sans-serif;
    resize: vertical;
}

textarea:focus {
    border-color: #FA8072;
    outline: none;
    box-shadow: 0 0 5px rgba(250, 128, 114, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .action-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .share-link {
        justify-content: center;
        text-align: center;
    }
    
    .groups-table {
        font-size: 0.9em;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .form-actions {
        flex-direction: column;
    }
}

/* Uitnodigingen */
.invites-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.invites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.invite-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.invite-card.active {
    border-color: #28a745;
}

.invite-card.expired {
    border-color: #dc3545;
    opacity: 0.7;
}

.invite-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.invite-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
}

.invite-status.active {
    background: #28a745;
    color: white;
}

.invite-status.expired {
    background: #dc3545;
    color: white;
}

.invite-url {
    margin-bottom: 15px;
}

.url-container {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 5px;
}

.url-container code {
    flex: 1;
    background: #f8f9fa;
    padding: 8px;
    border-radius: 4px;
    font-size: 0.9em;
    word-break: break-all;
}

.btn-copy {
    background: #6c757d;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8em;
}

.btn-copy:hover {
    background: #5a6268;
}

.invite-details {
    display: grid;
    gap: 8px;
    margin-bottom: 15px;
}

.detail {
    display: flex;
    justify-content: space-between;
    font-size: 0.9em;
}

.detail span {
    color: #6c757d;
}

/* Join pagina */
.join-container {
    max-width: 500px;
    margin: 50px auto;
    padding: 20px;
}

.join-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
}

.invite-info {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.1em;
}

.join-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.login-required {
    margin: 20px 0;
}

/* Group members */
.group-members-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Statistieken */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.stat-number {
    font-size: 2em;
    font-weight: bold;
    color: #FA8072;
}

.stat-number.pending {
    color: #ffc107;
}

.stat-number.rejected {
    color: #dc3545;
}

/* Add member form */
.add-member-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.add-member-form .form-row {
    display: flex;
    gap: 15px;
    align-items: end;
}

.add-member-form .form-group {
    flex: 1;
    margin-bottom: 0;
}

/* Members sections */
.members-sections {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.members-section {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.members-section.pending {
    border-left: 4px solid #ffc107;
}

.members-section.approved {
    border-left: 4px solid #28a745;
}

.members-section.rejected {
    border-left: 4px solid #dc3545;
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.member-card {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #ddd;
}

.member-card.pending {
    border-left-color: #ffc107;
}

.member-card.rejected {
    border-left-color: #dc3545;
}

.member-info {
    margin-bottom: 10px;
}

.member-email, .member-role, .member-joined {
    display: block;
    font-size: 0.9em;
    color: #666;
}

.member-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Members table */
.members-table table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.members-table th {
    background: #f8f9fa;
    padding: 12px;
    text-align: left;
    font-weight: bold;
    border-bottom: 2px solid #dee2e6;
}

.members-table td {
    padding: 12px;
    border-bottom: 1px solid #dee2e6;
}

.members-table tr:hover {
    background: #f8f9fa;
}

.badge-admin {
    background: #FA8072;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8em;
    margin-left: 5px;
}

.no-members {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
}

/* Group info */
.group-info {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.info-item {
    padding: 10px;
    background: white;
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .add-member-form .form-row {
        flex-direction: column;
    }
    
    .members-grid {
        grid-template-columns: 1fr;
    }
    
    .member-actions {
        flex-direction: column;
    }
    
    .stats-cards {
        grid-template-columns: 1fr;
    }
    
    .members-table {
        overflow-x: auto;
    }
}

.join-info {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 15px;
    border-radius: 5px;
    margin: 15px 0;
    font-size: 0.9em;
}

/* Mijn Groepen */
.my-groups-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.admin-notice {
    background: #e3f2fd;
    padding: 10px 15px;
    border-radius: 5px;
    margin-top: 10px;
    font-size: 0.9em;
}

.admin-notice a {
    color: #1976d2;
    font-weight: bold;
}

/* Groups overview */
.groups-overview {
    margin: 30px 0;
}

.no-groups {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.no-groups-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.action-links {
    margin-top: 20px;
}

.action-links .btn {
    margin: 0 10px;
}

/* Groups grid */
.groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.group-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid #ddd;
}

.group-card.status-approved {
    border-left-color: #28a745;
}

.group-card.status-pending {
    border-left-color: #ffc107;
}

.group-card.status-rejected {
    border-left-color: #dc3545;
}

.group-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.group-header h3 {
    margin: 0;
    color: #333;
    flex: 1;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
}

.status-badge.approved {
    background: #28a745;
    color: white;
}

.status-badge.pending {
    background: #ffc107;
    color: #212529;
}

.status-badge.rejected {
    background: #dc3545;
    color: white;
}

.group-description {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.group-details {
    margin-bottom: 20px;
}

.detail {
    margin-bottom: 8px;
    font-size: 0.9em;
}

.detail strong {
    color: #333;
}

.status-text {
    font-style: italic;
}

.group-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Quick actions */
.quick-actions {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 30px;
}

.quick-actions h3 {
    margin-bottom: 15px;
    color: #333;
}

.quick-actions .action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 768px) {
    .groups-grid {
        grid-template-columns: 1fr;
    }
    
    .group-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .group-actions {
        flex-direction: column;
    }
    
    .quick-actions .action-buttons {
        flex-direction: column;
    }
    
    .action-links .btn {
        display: block;
        margin: 10px 0;
    }
}

.join-options {
    margin: 25px 0;
    text-align: center;
}

.join-options h4 {
    margin-bottom: 20px;
    color: #333;
}

.option-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.option-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #FA8072;
}

.option-card h5 {
    margin: 0 0 10px 0;
    color: #333;
}

.option-card p {
    margin: 0;
    color: #666;
    font-size: 0.9em;
}

.join-group-container {
    max-width: 500px;
    margin: 50px auto;
    padding: 20px;
}

.join-group-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.alternative-actions {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.alternative-actions p {
    margin-bottom: 15px;
    color: #666;
}

/* Profielpagina */
.profile-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.profile-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    margin-top: 30px;
}

/* Profiel sidebar */
.profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: #FA8072;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 15px;
}

.profile-info h3 {
    margin: 0 0 10px 0;
    color: #333;
}

.role-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: bold;
}

.role-badge.superadmin {
    background: #d32f2f;
    color: white;
}

.role-badge.admin {
    background: #f57c00;
    color: white;
}

.role-badge.user {
    background: #388e3c;
    color: white;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.stat {
    text-align: center;
}

.stat strong {
    display: block;
    font-size: 1.5em;
    color: #FA8072;
}

.stat span {
    font-size: 0.8em;
    color: #666;
}

.quick-actions-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.quick-actions-card h4 {
    margin-bottom: 15px;
    color: #333;
}

.quick-actions-card .action-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quick-actions-card .btn {
    text-align: left;
    justify-content: flex-start;
}

/* Profiel content */
.profile-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-card h3 {
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

/* Mini groups list */
.groups-mini-list {
    max-height: 300px;
    overflow-y: auto;
}

.mini-group-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 6px;
    margin-bottom: 8px;
}

.mini-group-item.status-approved {
    border-left: 4px solid #28a745;
}

.mini-group-item.status-pending {
    border-left: 4px solid #ffc107;
}

.mini-group-item.status-rejected {
    border-left: 4px solid #dc3545;
}

.status-badge.mini {
    padding: 2px 6px;
    font-size: 0.7em;
}

.btn-link {
    color: #007bff;
    text-decoration: none;
    font-size: 0.8em;
}

.btn-link:hover {
    text-decoration: underline;
}

.view-all {
    text-align: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.no-groups {
    text-align: center;
    padding: 20px;
    color: #666;
}

/* Responsive */
@media (max-width: 968px) {
    .profile-layout {
        grid-template-columns: 1fr;
    }
    
    .profile-sidebar {
        order: 2;
    }
    
    .profile-content {
        order: 1;
    }
    
    .profile-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .profile-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .mini-group-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .group-actions {
        align-self: flex-end;
    }
}

/* Impersonation waarschuwing */
.impersonation-warning {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 10px 15px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-stop-impersonate {
    background: #dc3545;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    text-decoration: none;
}

.btn-stop-impersonate:hover {
    background: #c82333;
}

/* Impersonation knop in users tabel */
.btn-info {
    background: #17a2b8;
    color: white;
}

.btn-info:hover {
    background: #138496;
}

/* MESSAGES */
.error {
    background-color: #ffebee;
    color: #d32f2f;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border-left: 4px solid #d32f2f;
}

.success {
    background-color: #e8f5e9;
    color: #2e7d32;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border-left: 4px solid #2e7d32;
}

.info {
    background: #d1ecf1;
    color: #0c5460;
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    border: 1px solid #bee5eb;
}
.warning {
    background: #fff3cd;
    color: #856404;
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    border: 1px solid #ffeeba;
}

/* Gecentreerde messages met maximale breedte */
.error, .success, .info, .warning {
    white-space: pre-wrap;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Responsive aanpassingen voor mobiel */
@media (max-width: 768px) {
    .error, .success, .info, .warning {
        max-width: 90%;
        margin-left: 5%;
        margin-right: 5%;
    }
}

/* Optioneel: animatie voor fade-in effect */
.error, .success, .info, .warning {
    animation: fadeIn 0.5s ease-in;
}

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

/* Boards styling */
.boards-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.boards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.board-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid #FA8072;
    transition: transform 0.3s, box-shadow 0.3s;
}

.board-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.board-header {
    margin-bottom: 15px;
}

.board-header h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.3em;
}

.board-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.board-id {
    font-family: monospace;
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    color: #666;
}

.badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
    color: white;
}

.badge-private {
    background: #6c757d;
}

.badge-secured {
    background: #dc3545;
}

.board-description {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
    max-height: 60px;
    overflow: hidden;
}

.board-info {
    margin-bottom: 20px;
}

.info-item {
    margin-bottom: 5px;
    font-size: 0.9em;
}

.info-item strong {
    color: #333;
}

.board-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.board-actions .btn {
    flex: 1;
    min-width: 120px;
    text-align: center;
}

.no-boards {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.no-boards-icon {
    font-size: 4em;
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-boards h3 {
    margin-bottom: 15px;
    color: #333;
}

.no-boards p {
    color: #666;
    margin-bottom: 25px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .boards-grid {
        grid-template-columns: 1fr;
    }
    
    .board-actions {
        flex-direction: column;
    }
    
    .board-meta {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Boards styling - toevoegen aan bestaande CSS */
.boards-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.boards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.board-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid #FA8072;
    transition: transform 0.3s, box-shadow 0.3s;
}

.board-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.board-header {
    margin-bottom: 15px;
}

.board-header h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.3em;
}

.board-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.board-id {
    font-family: monospace;
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    color: #666;
}

.badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
    color: white;
}

.badge-private {
    background: #6c757d;
}

.badge-secured {
    background: #dc3545;
}

.board-description {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
    max-height: 60px;
    overflow: hidden;
}

.board-info {
    margin-bottom: 20px;
}

.info-item {
    margin-bottom: 5px;
    font-size: 0.9em;
}

.info-item strong {
    color: #333;
}

.board-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.board-actions .btn {
    flex: 1;
    min-width: 120px;
    text-align: center;
}

.no-boards {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.no-boards-icon {
    font-size: 4em;
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-boards h3 {
    margin-bottom: 15px;
    color: #333;
}

.no-boards p {
    color: #666;
    margin-bottom: 25px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Form row voor checkboxen */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.bord-type-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.bord-type-info h4 {
    margin: 0 0 10px 0;
    color: #333;
}

/* Responsive */
@media (max-width: 768px) {
    .boards-grid {
        grid-template-columns: 1fr;
    }
    
    .board-actions {
        flex-direction: column;
    }
    
    .board-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ===== VERBETERDE BORDEN STYLING ===== */

/* Compact board meta info */
.board-meta-compact {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.board-meta-compact .status-badge {
    padding: 2px 6px;
    font-size: 0.7em;
    background: #f8f9fa;
    color: #666;
    border: 1px solid #dee2e6;
}

/* Boards container -zelfde als groups */
.boards-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Gebruik bestaande groups-grid styling voor consistentie */
.boards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Speciale board card styling - compactere versie */
.board-card-compact {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-left: 4px solid #FA8072;
    transition: transform 0.2s, box-shadow 0.2s;
}

.board-card-compact:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.board-header-compact {
    margin-bottom: 12px;
}

.board-header-compact h3 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 1.1em;
    line-height: 1.3;
}

.board-description-compact {
    color: #666;
    margin-bottom: 12px;
    font-size: 0.9em;
    line-height: 1.4;
    max-height: 40px;
    overflow: hidden;
}

.board-info-compact {
    margin-bottom: 15px;
}

.board-info-compact .detail {
    margin-bottom: 4px;
    font-size: 0.8em;
    color: #666;
}

.board-info-compact .detail strong {
    color: #333;
}

.board-actions-compact {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.board-actions-compact .btn {
    padding: 6px 12px;
    font-size: 0.8em;
    flex: 1;
    min-width: auto;
    text-align: center;
}

/* Responsive aanpassingen */
@media (max-width: 768px) {
    .boards-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .board-card-compact {
        padding: 15px;
    }
    
    .board-actions-compact {
        flex-direction: column;
    }
}

/* ===== BOARD.PHP STYLING (verplaatsen naar styles.css) ===== */

.board-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.board-header {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 15px;
}

.board-title-section h1 {
    color: #FA8072;
    margin: 0 0 8px 0;
    font-size: 1.5em;
}

.board-description {
    color: #666;
    margin: 0;
    font-size: 0.9em;
}

.board-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.last-update {
    font-size: 0.8em;
    color: #666;
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.item-card {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-left: 4px solid #FA8072;
    transition: transform 0.2s;
}

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

.item-header {
    margin-bottom: 12px;
}

.item-name {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 1.1em;
}

.item-remark {
    color: #666;
    font-size: 0.8em;
    line-height: 1.3;
}

.status-display {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 0.9em;
}

.status-emoji {
    font-size: 1.3em;
}

.status-label {
    font-weight: bold;
}

.item-actions {
    margin-top: 12px;
}

.btn-status-change {
    background: #FA8072;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    font-size: 0.8em;
}

.btn-status-change:hover {
    background: #e57366;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    position: relative;
}

.close {
    position: absolute;
    right: 12px;
    top: 12px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #666;
}

.close:hover {
    color: #333;
}

.no-items {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.no-items-icon {
    font-size: 3em;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* Responsive voor board.php */
@media (max-width: 768px) {
    .board-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .board-meta {
        align-items: center;
    }
    
    .items-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 5% auto;
        padding: 15px;
    }
}

/* ===== VERBETERDE BORDEN FILTERING ===== */

/* Maximum bereikt styling */
.max-limit-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.limit-text {
    color: #dc3545;
    font-weight: bold;
    font-size: 0.9em;
}

/* Filter form verbeteringen */
.filter-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 0.9em;
}

.filter-group input,
.filter-group select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9em;
}

.filter-actions {
    display: flex;
    gap: 10px;
    align-items: end;
}

/* Status set badge in board cards */
.status-badge {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.7em;
    font-weight: bold;
    white-space: nowrap;
}

/* Results info verbetering */
.results-info {
    background: #f8f9fa;
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 0.9em;
    color: #495057;
    border-left: 4px solid #FA8072;
}

/* Warning box voor maximum bereikt */
.warning {
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
    border-left: 4px solid #ffc107;
}

.warning a {
    color: inherit;
    text-decoration: underline;
}

.warning a:hover {
    text-decoration: none;
}

/* Responsive filter form */
@media (max-width: 768px) {
    .filter-form {
        grid-template-columns: 1fr;
    }
    
    .filter-actions {
        justify-content: center;
    }
    
    .max-limit-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* Compact board meta layout */
.board-meta-compact {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 5px;
}

.items-management-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    padding: 25px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-main h1 {
    color: #FA8072;
    margin: 0 0 10px 0;
}

.header-main h2 {
    margin: 0 0 5px 0;
    color: #666;
    font-size: 1.1em;
}

.board-description {
    color: #666;
    margin: 0;
}

.header-actions {
    display: flex;
    gap: 10px;
}

.add-item-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.add-item-form .form-row {
    display: flex;
    gap: 15px;
    align-items: end;
}

.items-list-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.items-header {
    margin-bottom: 20px;
}

.items-header h3 {
    margin: 0 0 5px 0;
}

.no-items {
    text-align: center;
    padding: 40px;
    color: #666;
}

.no-items-icon {
    font-size: 3em;
    margin-bottom: 15px;
    opacity: 0.5;
}

.items-list {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.item-row {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
    transition: background-color 0.2s;
}

.item-row:hover {
    background: #f5f5f5;
}

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

.item-handle {
    cursor: grab;
    padding: 0 15px;
    color: #ccc;
    font-size: 1.2em;
}

.item-handle:active {
    cursor: grabbing;
}

.item-info {
    flex: 1;
}

.item-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.item-remark {
    color: #666;
    font-size: 0.9em;
}

.item-position {
    color: #999;
    font-size: 0.8em;
    margin: 0 15px;
}

.item-actions {
    margin-left: 15px;
}

.delete-form {
    margin: 0;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 0.8em;
}

.items-footer {
    margin-top: 15px;
    text-align: center;
    color: #666;
}

@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .add-item-form .form-row {
        flex-direction: column;
    }
    
    .item-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .item-handle {
        align-self: center;
    }
}

/* ===== EDIT BOARD STYLES ===== */
.edit-board-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.edit-board-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
    margin-top: 20px;
}

@media (max-width: 968px) {
    .edit-board-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Form cards */
.edit-board-container .form-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 25px;
}

.edit-board-container .form-card h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 1.2em;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

/* Info card */
.info-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.info-card h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.1em;
}

.info-grid {
    display: grid;
    gap: 12px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9em;
}

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

.info-item strong {
    color: #333;
}

/* Actions card */
.actions-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.actions-card h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.1em;
}

.action-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Danger card */
.danger-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 2px solid #ffebee;
}

.danger-card h3 {
    margin: 0 0 15px 0;
    color: #d32f2f;
    font-size: 1.1em;
}

.danger-actions {
    text-align: center;
}

/* Board meta */
.board-meta {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

/* Header actions aanpassing voor consistentie */
.edit-board-container .header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

@media (max-width: 768px) {
    .edit-board-container .header-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .edit-board-container {
        padding: 15px;
    }
    
    .edit-board-container .form-card {
        padding: 20px;
    }
}


/* ===== BOARDS.PHP STYLES ===== */
.boards-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Groups grid */
.groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

/* Group card */
.group-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid #FA8072;
    transition: transform 0.3s, box-shadow 0.3s;
}

.group-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.group-header {
    margin-bottom: 15px;
}

.group-header h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.3em;
}

.board-meta-compact {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Status badges */
.status-badge {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.7em;
    font-weight: bold;
    white-space: nowrap;
}

.badge-own {
    background: #FA8072;
    color: white;
}

.badge-shared {
    background: #28a745;
    color: white;
}

.badge-private {
    background: #6c757d;
    color: white;
}

.badge-secured {
    background: #dc3545;
    color: white;
}

.badge-info {
    background: #17a2b8;
    color: white;
}

.group-description {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.group-details {
    margin-bottom: 20px;
}

.detail {
    margin-bottom: 5px;
    font-size: 0.9em;
    color: #666;
}

.detail strong {
    color: #333;
}

/* Action buttons alignment */
.group-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.action-row-top {
    display: flex;
    justify-content: flex-start;
}

.action-row-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.group-actions .btn {
    min-width: 120px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .groups-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .group-card {
        padding: 20px;
    }
    
    .action-row-bottom {
        flex-direction: column;
    }
    
    .action-row-bottom .btn {
        width: 100%;
    }
}

/* Extra styling voor het bord */
.status-legend {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.status-legend h3 {
    margin: 0 0 10px 0;
    font-size: 1em;
}

.legend-items {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px;
    background: #f8f9fa;
    border-radius: 4px;
}

.view-only-notice {
    background: #fff3cd;
    color: #856404;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9em;
}

.item-comment {
    background: #f8f9fa;
    padding: 8px;
    border-radius: 4px;
    margin: 8px 0;
    font-size: 0.9em;
}

.item-comment.comment-private {
    background: #fff3cd;
    border-left: 3px solid #ffc107;
}

.status-options {
    margin: 15px 0;
}

.status-option {
    margin: 8px 0;
}

.status-option label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
}

.status-option label:hover {
    background: #f0f0f0;
}

.option-emoji {
    font-size: 1.2em;
}

.comment-section {
    margin: 15px 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 0.9em;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

/* ===== BOARD.PHP SPECIFIEKE STYLING ===== */

.board-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.board-header {
    background: white;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
}

.board-title-section h1 {
    color: #FA8072;
    margin: 0 0 10px 0;
    font-size: 1.8em;
}

.board-description {
    color: #666;
    margin: 0;
    font-size: 1em;
    line-height: 1.5;
}

.board-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
    text-align: right;
}

.last-update {
    font-size: 0.9em;
    color: #666;
    background: #f8f9fa;
    padding: 5px 10px;
    border-radius: 4px;
}

.view-only-notice {
    background: #fff3cd;
    color: #856404;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.9em;
    border: 1px solid #ffeaa7;
}

.status-set-info {
    font-size: 0.9em;
    color: #666;
}

/* Status legenda */
.status-legend {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.status-legend h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.1em;
}

.legend-items {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #666;
}

.legend-emoji {
    font-size: 1.2em;
}

.legend-label {
    font-weight: 500;
}

/* Items grid */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.item-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-left: 4px solid #FA8072;
    transition: all 0.3s ease;
    position: relative;
}

.item-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.item-header {
    margin-bottom: 15px;
}

.item-name {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 1.2em;
    font-weight: bold;
}

.item-remark {
    color: #666;
    font-size: 0.9em;
    line-height: 1.4;
}

.status-display {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
}

.status-emoji {
    font-size: 1.5em;
}

.status-label {
    font-weight: bold;
    font-size: 1em;
}

.item-comment {
    background: #e3f2fd;
    padding: 10px;
    border-radius: 6px;
    margin: 10px 0;
    font-size: 0.9em;
    line-height: 1.4;
    border-left: 3px solid #2196f3;
}

.item-comment.comment-private {
    background: #fff3cd;
    border-left-color: #ffc107;
}

.item-comment small {
    color: #666;
    font-style: italic;
}

.item-actions {
    margin-top: 15px;
}

.btn-status-change {
    background: #FA8072;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    font-size: 0.9em;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn-status-change:hover {
    background: #e57366;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(2px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #666;
    transition: color 0.3s;
}

.close:hover {
    color: #333;
}

.modal h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.3em;
}

.modal-item-name {
    font-weight: bold;
    margin-bottom: 20px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 1.1em;
}

.status-options {
    margin: 20px 0;
}

.status-option {
    margin: 12px 0;
}

.status-option label {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    padding: 12px;
    border-radius: 6px;
    transition: background-color 0.3s;
    border: 2px solid transparent;
}

.status-option label:hover {
    background: #f0f0f0;
}

.status-option input[type="radio"]:checked + .option-emoji + .option-label {
    font-weight: bold;
}

.status-option input[type="radio"]:checked ~ * {
    border-color: #FA8072;
}

.option-emoji {
    font-size: 1.8em;
}

.option-label {
    font-size: 1.1em;
    font-weight: 500;
}

.comment-section {
    margin: 20px 0;
}

.comment-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.comment-section textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
}

.comment-section textarea:focus {
    border-color: #FA8072;
    outline: none;
    box-shadow: 0 0 5px rgba(250, 128, 114, 0.3);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    font-size: 0.9em;
    color: #666;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 25px;
}

/* No items state */
.no-items {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    grid-column: 1 / -1;
}

.no-items-icon {
    font-size: 4em;
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-items h3 {
    margin-bottom: 15px;
    color: #333;
}

.no-items p {
    color: #666;
    margin-bottom: 25px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Long polling indicator */
.long-polling-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    display: none;
}

.long-polling-indicator.connected::before {
    content: "🔗 ";
}

.long-polling-indicator.disconnected::before {
    content: "🔴 ";
}

/* Responsive design */
@media (max-width: 768px) {
    .board-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 20px;
    }
    
    .board-meta {
        align-items: center;
        text-align: center;
    }
    
    .items-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 20px;
        width: 95%;
    }
    
    .status-legend {
        padding: 15px;
    }
    
    .legend-items {
        flex-direction: column;
        gap: 10px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .item-card {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .board-container {
        padding: 10px;
    }
    
    .item-name {
        font-size: 1.1em;
    }
    
    .status-emoji {
        font-size: 1.3em;
    }
    
    .status-label {
        font-size: 0.9em;
    }
}

/* Animation for status updates */
@keyframes statusUpdate {
    0% { background-color: #e8f5e9; }
    100% { background-color: white; }
}

.item-card.status-updated {
    animation: statusUpdate 2s ease;
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: " ...";
    animation: loadingDots 1.5s infinite;
}

@keyframes loadingDots {
    0%, 20% { content: " ."; }
    40% { content: " .."; }
    60%, 100% { content: " ..."; }
}

/* ===== SIMPELE BOARD STYLING ===== */

.board-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.board-header {
    background: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.board-header h1 {
    color: #FA8072;
    margin: 0 0 15px 0;
    font-size: 2em;
}

.board-description {
    color: #666;
    font-size: 1.1em;
    line-height: 1.5;
    margin: 0 0 15px 0;
}

.status-set-info {
    color: #888;
    font-style: italic;
    font-size: 0.9em;
}

/* Status legenda */
.status-legend {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.status-legend h3 {
    margin: 0 0 15px 0;
    color: #333;
    text-align: center;
}

.legend-items {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #666;
}

.legend-emoji {
    font-size: 1.3em;
}

.legend-label {
    font-weight: 500;
}

.default-badge {
    background: #FA8072;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.7em;
}

/* Items grid */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.item-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-left: 4px solid #FA8072;
}

.item-header {
    margin-bottom: 15px;
}

.item-name {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 1.2em;
    font-weight: bold;
}

.item-remark {
    color: #666;
    font-size: 0.9em;
    line-height: 1.4;
}

.status-display {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.status-emoji {
    font-size: 1.8em;
}

.status-label {
    font-weight: bold;
    font-size: 1.1em;
}

.item-comment {
    background: #e3f2fd;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.9em;
    line-height: 1.4;
    border-left: 3px solid #2196f3;
}

.item-comment.comment-private {
    background: #fff3cd;
    border-left-color: #ffc107;
}

.item-comment small {
    color: #666;
    font-style: italic;
}

.no-items {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    grid-column: 1 / -1;
}

.no-items-icon {
    font-size: 4em;
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-items h3 {
    margin-bottom: 15px;
    color: #333;
}

/* Responsive */
@media (max-width: 768px) {
    .board-container {
        padding: 10px;
    }
    
    .board-header {
        padding: 20px;
    }
    
    .items-grid {
        grid-template-columns: 1fr;
    }
    
    .legend-items {
        flex-direction: column;
        align-items: center;
    }
}

/* ===== SIMPELE BOARD STYLING ===== */
.simple-board {
    max-width: 100%;
    margin: 0;
    padding: 20px;
    font-family: Arial, sans-serif;
}

.board-title {
    font-size: 3em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
    color: #333;
}

.board-subtitle {
    font-size: 1.2em;
    text-align: center;
    margin-bottom: 30px;
    color: #666;
}

.items-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.item {
    padding: 25px;
    border-radius: 10px;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.item-name {
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 10px;
}

.item-remark {
    font-size: 1.2em;
    margin-bottom: 15px;
    opacity: 0.9;
}

.item-status {
    font-size: 1.5em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Responsive */
@media (max-width: 768px) {
    .simple-board {
        padding: 10px;
    }
    
    .board-title {
        font-size: 2em;
    }
    
    .item-name {
        font-size: 1.5em;
    }
    
    .item-status {
        font-size: 1.2em;
    }
}

/* ===== STATUS SETS STYLING ===== */

.status-sets-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.sets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.set-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid #FA8072;
    transition: transform 0.3s, box-shadow 0.3s;
}

.set-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.set-card.global-set {
    border-left-color: #28a745;
}

.set-card.private-set {
    border-left-color: #6c757d;
}

.set-header {
    margin-bottom: 15px;
}

.set-header h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.3em;
}

.set-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.set-description {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
}

.options-preview {
    margin-bottom: 15px;
}

.options-preview h4 {
    margin: 0 0 10px 0;
    font-size: 1em;
    color: #333;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 3px solid #666;
    font-size: 0.9em;
}

.option-emoji {
    font-size: 1.1em;
}

.option-label {
    flex: 1;
    font-weight: 500;
}

.default-badge {
    background: #FA8072;
    color: white;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 0.7em;
    font-weight: bold;
}

.set-details {
    margin-bottom: 20px;
    font-size: 0.9em;
    color: #666;
}

.set-details .detail {
    margin-bottom: 5px;
}

.set-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.set-actions .btn {
    flex: 1;
    min-width: 120px;
}

.quick-stats {
    display: flex;
    gap: 10px;
    align-items: center;
}

.stat-badge {
    background: #f8f9fa;
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 0.8em;
    color: #666;
    border: 1px solid #dee2e6;
}

.badge-global {
    background: #28a745;
    color: white;
}

.badge-private {
    background: #6c757d;
    color: white;
}

.no-sets {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    grid-column: 1 / -1;
}

.no-sets-icon {
    font-size: 4em;
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-sets h3 {
    margin-bottom: 15px;
    color: #333;
}

.no-sets p {
    color: #666;
    margin-bottom: 25px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== STATUS SET FORM STYLING ===== */

.form-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.form-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.status-option-row {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #e9ecef;
}

.option-fields .form-row {
    display: grid;
    grid-template-columns: 80px 2fr 100px 100px 120px auto;
    gap: 15px;
    align-items: start;
}

.option-fields .form-group {
    margin-bottom: 0;
}

.option-fields label {
    font-size: 0.8em;
    margin-bottom: 5px;
    font-weight: 600;
}

.option-fields input[type="text"],
.option-fields input[type="number"] {
    padding: 10px;
    font-size: 0.9em;
    width: 100%;
}

.option-fields input[type="color"] {
    width: 100%;
    height: 42px;
    padding: 2px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}

.remove-option {
    padding: 8px 12px !important;
    font-size: 0.8em !important;
    height: 42px;
    margin-top: 23px !important;
}

.form-section {
    margin: 30px 0;
    padding: 25px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.form-section h3 {
    margin: 0 0 15px 0;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    font-size: 1.2em;
}

.form-help {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 20px;
    line-height: 1.5;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
    margin-top: 23px;
}

.checkbox-label input[type="checkbox"],
.checkbox-label input[type="radio"] {
    margin: 0;
}

/* Responsive voor status sets */
@media (max-width: 768px) {
    .sets-grid {
        grid-template-columns: 1fr;
    }
    
    .set-actions {
        flex-direction: column;
    }
    
    .quick-stats {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
    }
    
    .action-links {
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .action-links .btn {
        width: 200px;
    }
}

/* Responsive voor status set form */
@media (max-width: 1200px) {
    .form-container {
        max-width: 100%;
        padding: 20px;
    }
}

@media (max-width: 968px) {
    .option-fields .form-row {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .option-fields .form-group:nth-last-child(2),
    .option-fields .form-group:last-child {
        grid-column: 1 / -1;
        text-align: center;
    }
    
    .checkbox-label {
        margin-top: 0;
        justify-content: center;
    }
    
    .remove-option {
        margin-top: 0 !important;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .option-fields .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-section {
        padding: 20px;
    }
    
    .form-card {
        padding: 20px;
    }
}

/* Preview voor status opties in edit form */
.option-preview {
    margin-top: 8px;
    padding: 8px;
    background: white;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.preview-emoji {
    font-size: 1.2em;
    margin-right: 5px;
}

/* Modal styles for item editing */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 25px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #666;
}

.close:hover {
    color: #333;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.btn-warning {
    background: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background: #e0a800;
}

.edit-item-btn {
    padding: 6px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}
