/* GSP Website/css/style.css */
:root {
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --secondary-color: #f8f9fa;
    --border-color: #e2e8f0;
    --text-color: #334155;
    --bg-color: #f1f5f9;
    --card-bg: #ffffff;
    --success-color: #34d399;
    --danger-color: #f87171;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.5;
}

.app-header {
    background-color: #1e3a8a; /* Vaste kleur van de navigatiebalk */
    color: white;
    padding: 1.25rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.app-header h1 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.app-header nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.app-header nav a, .app-header nav button {
    text-decoration: none;
    margin-left: 1rem;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

.app-header nav a:not(.btn) {
    color: rgba(255, 255, 255, 0.8);
}

.app-header nav a:not(.btn):hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    padding: 0.6rem 1.1rem;
    border-radius: 8px;
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.1;
    text-decoration: none;
    background: transparent;
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 0.35rem 0.7rem;
    font-size: 0.85rem;
    border-radius: 6px;
}

.btn-icon {
    width: 32px;
    height: 32px;
    padding: 0;
}

.btn-primary {
    background-color: var(--success-color);
    color: white;
    box-shadow: 0 2px 4px rgba(52, 211, 153, 0.2);
}

.btn-primary:hover {
    background-color: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
    background-color: #64748b;
    color: white;
    box-shadow: 0 2px 4px rgba(100, 116, 139, 0.2);
}

.btn-secondary:hover {
    background-color: #475569;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(100, 116, 139, 0.4);
}

.btn-info {
    background-color: #1e3a8a; /* Vaste kleur van de navigatiebalk */
    color: white;
    box-shadow: 0 2px 4px rgba(30, 58, 138, 0.2);
}

.btn-info:hover {
    background-color: #0b5ed7; /* Iets donkerder voor hover */
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(30, 58, 138, 0.3);
}

/* ... (rest van de bestaande knopstijlen) ... */

.user-badge {
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    background-color: rgba(255, 255, 255, 0.12);
}

.btn-outline {
    background-color: #f8fafc;
    color: #334155;
    border-color: var(--border-color);
}

.btn-outline:hover {
    background-color: #e2e8f0;
    transform: translateY(-1px);
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
    box-shadow: 0 2px 4px rgba(248, 113, 113, 0.2);
}

.btn-danger:hover {
    background-color: #ef4444;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(239, 68, 68, 0.3);
}

.btn-danger-outline {
    background-color: #fff5f5;
    color: #b91c1c;
    border-color: rgba(239, 68, 68, 0.4);
}

.btn-danger-outline:hover {
    background-color: #fee2e2;
    transform: translateY(-1px);
}

.active {
    font-weight: 600 !important;
    color: white !important;
    position: relative;
}

.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
}

.dashboard-container {
    display: flex;
    padding: 2.5rem;
    gap: 2rem;
    max-width: 1600px;
    margin: 3rem auto;
}

.filters-sidebar {
    min-width: 280px !important; 
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    max-height: calc(100vh - 6rem);
    overflow-y: auto;
}

.filters-sidebar h2 {
    margin-top: 0;
    font-size: 1.25rem;
    color: #1e293b;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--bg-color);
    padding-bottom: 0.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: #475569;
}

.form-group select, .form-group input {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: #f8fafc;
    box-sizing: border-box;
}

.form-group select:focus, .form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(11, 94, 215, 0.1);
}

.form-actions {
    margin-top: 1.5rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.doc-current {
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.doc-current a {
    color: var(--primary-color);
    font-weight: 500;
}

.doc-current.is-delete a {
    text-decoration: line-through;
    color: #94a3b8;
    pointer-events: none;
}

.doc-delete-status {
    font-size: 0.85rem;
    color: var(--danger-color);
    font-weight: 600;
    display: none;
}

.doc-current.is-delete .doc-delete-status {
    display: inline;
}

.opslag-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.opslag-input {
    width: 100%;
}

.products-section {
    flex-grow: 1;
    background: var(--card-bg);
    padding: 0;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.table-container {
    overflow-x: auto;
    padding: 1.5rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

th, td {
    padding: 1rem 0.75rem;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

th {
    background-color: #f8fafc;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

tbody tr {
    transition: background-color 0.15s;
}

tbody tr:hover {
    background-color: #f1f5f9;
}

.status-complete {
    color: var(--success-color);
    font-weight: 600;
    background-color: rgba(16, 185, 129, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    display: inline-block;
}

.status-incomplete {
    color: var(--danger-color);
    font-weight: 600;
    background-color: rgba(239, 68, 68, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    display: inline-block;
}

.action-links a {
    margin-right: 0.5rem;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    transition: color 0.2s;
}

.action-links a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.messages {
    padding: 1rem 1.5rem;
}

.login-page {
    min-height: 100vh;
}

.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.5rem 3rem;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: var(--card-bg);
    border-radius: 14px;
    padding: 2.25rem;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
}

.login-card h2 {
    margin-top: 0;
    margin-bottom: 0.25rem;
    color: #1e293b;
}

.login-subtitle {
    margin: 0 0 1.5rem;
    color: #64748b;
    font-size: 0.95rem;
}

.login-message {
    min-height: 1.25rem;
    margin-bottom: 1rem;
    color: var(--danger-color);
    font-weight: 600;
}

.page-stack {
    display: block;
}

.users-layout {
    display: grid;
    grid-template-columns: minmax(280px, 360px) 1fr;
    gap: 2rem;
}

.user-form-panel,
.users-table-panel {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.user-form-panel {
    padding: 1.5rem;
}

.user-form-panel h2,
.section-heading h2 {
    margin: 0;
    color: #1e293b;
    font-size: 1.25rem;
}

.user-form-panel h2 {
    margin-bottom: 1rem;
}

.section-heading {
    padding: 1.5rem 1.5rem 0;
}

.inline-message {
    min-height: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--danger-color);
}

.inline-message.success {
    color: var(--success-color);
}

.inline-message.info {
    color: #64748b;
}

.role-pill {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background-color: #e0f2fe;
    color: #075985;
    font-weight: 700;
    font-size: 0.85rem;
}

.password-requirements {
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    font-size: 0.85rem;
}

.password-requirements p {
    margin: 0 0 0.5rem 0;
    font-weight: 600;
}

.password-requirements ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.password-requirements li {
    color: var(--danger-color);
    margin-bottom: 0.2rem;
}

.password-requirements li.met {
    color: var(--success-color);
}

.password-requirements li::before {
    content: "✖ ";
    margin-right: 5px;
}

.password-requirements li.met::before {
    content: "✔ ";
}

.link-button {
    border: none;
    background: none;
    color: var(--primary-color);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    margin-right: 0.75rem;
}

.link-button:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.danger-link {
    color: var(--danger-color);
}

.muted-text {
    color: #64748b;
    font-size: 0.9rem;
}

/* Styles for Attribute Management Page */
.attribute-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem;
}

.attribute-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.attribute-card-header {
    background-color: #1e3a8a; /* Vaste kleur van de navigatiebalk */
    padding: 1rem 1.5rem;
    font-weight: 600;
    color: white;
    border-bottom: 1px solid var(--border-color);
    font-size: 1.1rem;
}

.attribute-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 250px; /* Limit height for scrollability */
    overflow-y: auto;
    flex: 1;
}

.attribute-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid #f1f5f9; /* Lighter border for items */
    gap: 1rem;
    flex-wrap: nowrap;
}

.attribute-item > span {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #334155;
    font-weight: 500;
}

.attribute-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.attribute-actions .btn {
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.attribute-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.attribute-actions .btn-danger {
    background-color: #fee2e2;
    color: #ef4444;
    border: 1px solid #fecaca;
    width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    box-shadow: none;
}

.attribute-actions .btn-danger:hover {
    background-color: #ef4444;
    color: white;
    border-color: #ef4444;
}

.attribute-card-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--border-color);
    background-color: #f8fafc;
    margin-top: auto;
}

.attribute-card-footer .btn-primary {
    background-color: #1e3a8a; /* Vaste kleur van de navigatiebalk */
    border: none;
}

.attribute-actions .btn-info { /* Voor de aanpassen knop */
    background-color: #1e3a8a; /* Vaste kleur van de navigatiebalk */
    color: white;
    border: none;
}

.attribute-actions .btn-info:hover {
    background-color: #0b5ed7; /* Iets donkerder voor hover */
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(30, 58, 138, 0.3);
}

.attribute-edit-row {
    display: flex;
    gap: 0.5rem;
    width: 100%;
}

.attribute-edit-input {
    flex: 1;
    padding: 0.3rem 0.6rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.9rem;
}

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

/* Media Queries voor Laptops (1024px en hoger) */
@media (min-width: 1024px) {
    .dashboard-container {
        padding: 3rem;
        gap: 2.5rem;
    }

    .filters-sidebar {
        min-width: 320px !important;
    }

    .form-container {
        max-width: 900px; /* Iets breder formulier op laptops */
    }
}

/* Media Queries voor Grote Schermen en Ultra-wide (1440px en hoger) */
@media (min-width: 1440px) {
    .dashboard-container {
        max-width: 1700px; /* Breidt de maximale breedte uit */
        padding: 4rem;
        gap: 3.5rem;
    }
}

@media (max-width: 900px) {
    .app-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 1rem;
        padding: 1.25rem;
    }

    .app-header nav a,
    .app-header nav button {
        margin-left: 0;
    }

    .dashboard-container {
        padding: 1.25rem;
    }

    .users-layout {
        grid-template-columns: 1fr;
    }
}
