/**
 * Styling SPECIFIEK voor het MijnBNA Bureau Dashboard (AANVULLEND op frontend.css)
 */

/* Behoud mogelijk unieke styles of styles die nog gecheckt moeten worden */

/* Was de blauwe panel header specifiek gewenst? Zo niet, verwijder deze.
.mijnbna-panel h3 {
    background: #3498db; 
    color: white;
    margin: 0;
    padding: 15px 20px;
    border-radius: 5px 5px 0 0;
    font-size: 18px;
    font-weight: 500;
}
*/

/* Button styling was grotendeels dubbel, .edit-button was identiek aan primary */
/* .button { ... } */
/* .button.primary { ... } */
/* .edit-button { ... } */

/* Employees Panel - Deze styling lijkt specifiek en kan mogelijk blijven, 
   maar check of het niet conflicteert/beter kan met de algemene .mijnbna-dashboard-wrapper styles in frontend.css */
.mijnbna-dashboard-wrapper .employees-panel h3 {
    display: block;
    margin-bottom: 20px;
}

/* .employees-list is mogelijk ook al gedekt door .mijnbna-dashboard in frontend.css? */
.mijnbna-dashboard-wrapper .employees-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 50px;
    width: 100%;
    box-sizing: border-box;
}

/* Employee Card styles - check voor overlap met .mijnbna-dashboard-card in frontend.css */
.mijnbna-dashboard-wrapper .employee-card { /* Maak selector specifieker */
    background: white; /* Overlap */
    border-radius: 0px; /* Overlap */
    padding: 15px; /* Afwijkend? */
    display: flex;
    flex-direction: column;
}

.mijnbna-dashboard-wrapper .employee-info {
    margin-bottom: 10px;
}

.mijnbna-dashboard-wrapper .employee-name {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 5px;
}

.mijnbna-dashboard-wrapper .employee-email {
    color: #666;
    margin-bottom: 10px;
    word-break: break-all;
}

.mijnbna-dashboard-wrapper .employee-roles {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
}

/* Role badge styling lijkt uniek */
.mijnbna-dashboard-wrapper .role-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 0px;
    font-size: 12px;
    font-weight: 500;
}

.mijnbna-dashboard-wrapper .role-badge.admin {
    background-color: #3498db; /* Gebruik variabele? */
    color: white;
}

.mijnbna-dashboard-wrapper .role-badge.user {
    background-color: #f1c40f; /* Gebruik variabele? */
    color: #333;
}

.mijnbna-dashboard-wrapper .employee-bureau {
    font-size: 14px;
    color: #555;
    margin-top: 10px;
}

.mijnbna-dashboard-wrapper .employee-actions {
    margin-top: auto;
}

/* Disconnect styling lijkt uniek */
.mijnbna-dashboard-wrapper .disconnection-pending {
    display: block;
    padding: 8px;
    background-color: #f5f5f5;
    color: #666;
    text-align: center;
    border-radius: 0px;
}

.mijnbna-dashboard-wrapper .disconnect-employee {
    color: #e74c3c; /* Gebruik variabele? */
    text-decoration: none;
}

/* Media query was dubbel */
/* @media (max-width: 992px) { ... } */

/* Section display en navigation styles */
.mijnbna-section {
    display: none;
}

.mijnbna-section.active {
    display: block;
}

/* Navigation active state styling wordt overgenomen van frontend.css */

/* ========= CHECKBOX GROUPS STYLING ========= */

.mijnbna-checkbox-list,
.mijnbna-checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 0px 15px;
    padding: 0;
    margin-top: 15px;
}

.user-prefs__list-item,
.mijnbna-checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0px;
    background-color: transparent;
    border-radius: 0px;
    transition: background-color 0.15s ease;
    cursor: pointer;
    min-height: 32px;
}

.user-prefs__list-item input[type="checkbox"],
.mijnbna-checkbox-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
    accent-color: #004650;
    flex-shrink: 0;
}

.user-prefs__list-item label,
.mijnbna-checkbox-item label {
    flex: 1;
    margin: 0;
    cursor: pointer;
    font-size: 13px;
    color: #2D2337;
    font-weight: normal;
    line-height: 1.3;
    user-select: none;
}

.user-prefs__list-item input[type="checkbox"]:checked + label,
.mijnbna-checkbox-item input[type="checkbox"]:checked + label {
    font-weight: 600;
    color: #004650;
}

.mijnbna-checkbox-item input[type="checkbox"]:focus {
    outline: 2px solid #2c6d7f;
    outline-offset: 2px;
}

/* Mobile responsive styling voor checkboxes */
@media (max-width: 768px) {
    .mijnbna-checkbox-group {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        padding: 0px;
        gap: 6px 12px;
    }
    
    .mijnbna-checkbox-item {
        padding: 8px 0px;
        min-height: 30px;
    }
    
    .mijnbna-checkbox-item label {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .mijnbna-checkbox-group {
        grid-template-columns: 1fr;
        padding: 0px;
        gap: 4px;
    }
    
    .mijnbna-checkbox-item {
        padding: 6px 0px;
        gap: 6px;
        min-height: 28px;
    }
}

/* Specifieke styling voor bureauprofiel form */
.mijnbna-form-bureauprofiel .mijnbna-form-row {
    margin-bottom: 25px;
}

.mijnbna-form-bureauprofiel .mijnbna-form-row > label {
    display: block;
    font-weight: bold;
    color: #2D2337;
    margin-bottom: 8px;
    font-size: 16px;
}

/* Message styling voor bureauprofiel form */
.mijnbna-message-form-bureauprofiel {
    margin-top: 15px;
    padding: 12px 16px;
    border-radius: 0px;
    font-size: 14px;
}

.mijnbna-message-form-bureauprofiel.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.mijnbna-message-form-bureauprofiel.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Dashboard agenda styling */
.event-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.agenda-item {
    margin-bottom: 20px;
    padding: 0px;
    border-radius: 0px;
    border-left: 0px solid #004650;
	list-style: none;
}

.agenda-item-content h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
}

.agenda-item-content h4 a {
    color: #2D2337;
    text-decoration: none;
}

.agenda-item-content h4 a:hover {
    color: #004650;
    text-decoration: underline;
}

.agenda-meta span {
    display: block;
    margin-bottom: 4px;
}

.agenda-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 0px;
    font-size: 12px;
    font-weight: 500;
}

.agenda-status.status-confirmed {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.agenda-status.status-pending {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.agenda-status.status-unknown {
    background-color: #e2e3e5;
    color: #6c757d;
    border: 1px solid #d6d8db;
}

.no-events-message {
}

.no-events-message p {
    margin-bottom: 15px;
}

.mijnbna-message-form-bureauprofiel p {
    margin: 0;
    font-weight: 500;
}

/* ========= INLINE EDITING STYLES VOOR BUREAU DASHBOARD ========= */

/* Clickable field styling */
.clickable-field {
    cursor: pointer !important;
    color: #2D2337 !important;
	border-bottom: 0px dotted #2c6d7f !important;
    transition: all 0.2s ease-in-out;
}

.clickable-field:hover {
    background-color: #f8f9fa;
    border-bottom-color: #1e4b57 !important;
    color: #1e4b57 !important;
}

/* Edit mode container is initially hidden */
.edit-mode {
    display: none;
}

/* Info grid for edit mode - gebruik hetzelfde grid layout als view mode */
.info-grid-edit {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
    align-items: start;
    margin-bottom: 25px;
}

/* Individual field row in edit mode */
.inline-field-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-height: auto;
}

/* Labels in edit mode - match info-label styling */
.inline-field-label {
    font-weight: bold;
    color: #2D2337;
    text-align: left;
    font-size: inherit;
    padding-right: 1em;
    margin-bottom: 5px;
}

/* Input fields styling - match info-value styling */
.form-control-inline {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 0;
    font-size: inherit;
    font-family: inherit;
    line-height: inherit;
    color: #2D2337;
    background-color: #EBEBE6;
    min-height: 45px;
    max-width: 490px;
    box-sizing: border-box;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.form-control-inline:focus {
    outline: 2px solid #2c6d7f;
    outline-offset: -2px;
    background-color: #EBEBE6;
}

.form-control-inline:disabled {
    background-color: #ddd;
    color: #999;
    cursor: not-allowed;
}

/* Select dropdown specific styling */
.form-control-inline[type="select"],
select.form-control-inline {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232D2337' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    padding-right: 35px;
}

/* Edit action buttons */
.edit-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.save-button, .cancel-button {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: 0px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.save-button {
    background-color: #2c6d7f;
    color: white;
}

.save-button:hover:not(:disabled) {
    background-color: #1e4b57;
}

.save-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.cancel-button {
    background-color: #6c757d;
    color: white;
}

.cancel-button:hover {
    background-color: #5a6268;
}

/* Inline edit button styling */
.inline-edit-button {
    background-color: transparent;
    color: #2c6d7f;
    border: 1px solid #2c6d7f;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 0px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.inline-edit-button:hover {
    background-color: #2c6d7f;
    color: white;
}

/* Form message styling */
.form-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 0px;
    font-size: 14px;
}

.form-message p {
    margin: 0;
}

/* Responsive design voor edit mode */
@media (max-width: 768px) {
    .info-grid-edit {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .inline-field-label {
        font-size: inherit;
        padding-right: 0.5em;
    }
    
    .form-control-inline {
        font-size: inherit;
        padding: 10px;
        max-width: 100%;
    }
    
    .edit-actions {
        flex-direction: row;
		display: inline-flex !important;
        gap: 8px;
    }
    
    .save-button, .cancel-button {
        width: 100%;
        padding: 12px;
    }
}

/* Small screens adjustments */
@media (max-width: 480px) {
    .inline-field-label {
        font-size: inherit;
        padding-right: 0.5em;
    }
    
    .form-control-inline {
        font-size: inherit;
        padding: 10px;
        max-width: 100%;
    }
}

/* === INLINE EDITING STYLES === */
.info-grid-edit {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
}

/* Responsive: op smalle schermen 1 kolom */
@media (max-width: 768px) {
    .info-grid-edit {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

.inline-field-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.inline-field-label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.inline-field-input input,
.inline-field-input select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 0px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}

.form-control-inline {
    border: 1px solid #ddd;
    border-radius: 0px;
    padding: 8px 12px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}

.form-control-inline:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 1px #007cba;
}

.edit-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 15px;
}

.edit-actions .btn {
    padding: 8px 16px;
    border: none;
    border-radius: 0px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.edit-actions .btn-primary {
    background-color: #007cba;
    color: white;
}

.edit-actions .btn-primary:hover {
    background-color: #005a87;
}

.edit-actions .btn-secondary {
    background-color: #f7f7f7;
    color: #666;
    border: 1px solid #ddd;
}

.edit-actions .btn-secondary:hover {
    background-color: #e7e7e7;
}

.form-message {
    padding: 10px;
    border-radius: 0px;
    margin-top: 15px;
}

.form-message p {
    margin: 0;
}

/* Button styles */
.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.btn-outline-primary {
    background-color: transparent;
    color: #007cba;
    border: 1px solid #007cba;
}

.btn-outline-primary:hover {
    background-color: #007cba;
    color: white;
}

.btn-outline-danger {
    background-color: transparent;
    color: #d63384;
    border: 1px solid #d63384;
}

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

/* === EMPLOYEES STYLES === */
.employees-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.employee-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border: 0px solid #e1e5e9;
    border-radius: 0px;
    background-color: #fff;
    transition: all 0.2s ease;
}

.employee-card:hover {
    border-color: #c3c4c7;
    box-shadow: none;
}

.employee-card.disabled {
    opacity: 0.6;
    background-color: #f8f9fa;
}

.employee-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.employee-name {
    font-weight: 600;
    color: #1d2327;
    font-size: 15px;
}

.employee-email {
    color: #646970;
    font-size: 14px;
}

.employee-role {
    color: #135e96;
    font-size: 13px;
    font-weight: 500;
}

.employee-actions {
    display: flex;
    align-items: center;
}

.employee-actions .btn {
    border: none;
    border-radius: 0px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
}

.disconnection-pending {
    color: #d63384;
    font-size: 13px;
    font-weight: 500;
    font-style: italic;
}

/* Responsive styling voor employee cards */
@media (max-width: 768px) {
    .employee-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .employee-actions {
        width: 100%;
        justify-content: flex-end;
    }
}