/**
 * Solas Forms - Frontend Styles
 */

/* Form Container */
.solas-form {
    max-width: 100%;
    margin: 0 auto;
}

/* Honeypot */
.solas-form-hp {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

/* Field Grid - Flexbox layout for side-by-side fields */
.solas-form-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.solas-form-field {
    margin-bottom: 0; /* Gap handled by parent */
    box-sizing: border-box;
}

/* Full width (default) */
.solas-field-width-full {
    width: 100%;
}

/* Half width - two fields side by side */
.solas-field-width-half {
    width: calc(50% - 10px);
    flex: 0 0 calc(50% - 10px);
}

/* Third width - three fields side by side */
.solas-field-width-third {
    width: calc(33.333% - 14px);
    flex: 0 0 calc(33.333% - 14px);
}

/* Two-thirds width */
.solas-field-width-two-thirds {
    width: calc(66.666% - 7px);
    flex: 0 0 calc(66.666% - 7px);
}

/* Quarter width */
.solas-field-width-quarter {
    width: calc(25% - 15px);
    flex: 0 0 calc(25% - 15px);
}

/* Fallback for forms without wrapper */
.solas-form > .solas-form-field {
    margin-bottom: 20px;
}

/* Labels */
.solas-form-field > label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.solas-required {
    color: #dc3545;
    margin-left: 3px;
}

/* Field Inputs */
.solas-field-input input[type="text"],
.solas-field-input input[type="email"],
.solas-field-input input[type="number"],
.solas-field-input input[type="date"],
.solas-field-input input[type="time"],
.solas-field-input input[type="tel"],
.solas-field-input input[type="url"],
.solas-field-input input[type="password"],
.solas-field-input select,
.solas-field-input textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    line-height: 1.5;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: #fff;
}

.solas-field-input input:focus,
.solas-field-input select:focus,
.solas-field-input textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.solas-field-input textarea {
    min-height: 120px;
    resize: vertical;
}

/* File Input */
.solas-field-input input[type="file"] {
    padding: 8px;
    border: 1px dashed #ddd;
    border-radius: 4px;
    width: 100%;
    cursor: pointer;
}

.solas-field-input input[type="file"]:hover {
    border-color: #0073aa;
}

/* Checkbox & Radio */
.solas-checkbox-group,
.solas-radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.solas-checkbox-item,
.solas-radio-item {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.solas-checkbox-item input,
.solas-radio-item input {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.solas-checkbox-single {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.solas-checkbox-single input {
    margin-right: 10px;
    width: 18px;
    height: 18px;
}

/* Media Field */
.solas-media-field {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.solas-media-current {
    display: flex;
    align-items: center;
    gap: 10px;
}

.solas-media-preview {
    width: 80px;
    height: 80px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.solas-media-preview:empty {
    display: none;
}

.solas-media-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

/* Media panel switch links */
.solas-media-gallery-link,
.solas-media-upload-link {
    margin: 12px 0 0 !important;
    text-align: center !important;
}

.solas-media-field .solas-media-show-gallery,
.solas-media-field .solas-media-show-upload {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 13px !important;
    color: #0073aa !important;
    cursor: pointer !important;
    text-decoration: underline !important;
    font-weight: 400 !important;
    box-shadow: none !important;
    min-height: auto !important;
    height: auto !important;
    line-height: 1.4 !important;
}

.solas-media-field .solas-media-show-gallery:hover,
.solas-media-field .solas-media-show-upload:hover {
    color: #005a87 !important;
    text-decoration: none !important;
}

/* Media Panels */
.solas-media-panel {
    display: none;
}

.solas-media-panel.active {
    display: block;
}

/* Gallery Grid */
.solas-media-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
    max-height: 240px;
    overflow-y: auto;
    padding: 4px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f9f9f9;
}

.solas-media-gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.solas-media-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.solas-media-gallery-item:hover {
    border-color: #0073aa;
}

.solas-media-gallery-item.selected {
    border-color: #0073aa;
}

.solas-media-gallery-item .solas-media-check {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    background: #0073aa;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
}

.solas-media-gallery-item .solas-media-check::after {
    content: '';
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}

.solas-media-gallery-item.selected .solas-media-check {
    display: flex;
}

/* Upload Area */
.solas-media-upload-area {
    position: relative;
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    transition: all 0.2s;
    background: #fafafa;
}

.solas-media-upload-area:hover,
.solas-media-upload-area.dragover {
    border-color: #0073aa;
    background: #f0f7fc;
}

.solas-media-file-input {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.solas-media-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #666;
    pointer-events: none;
}

.solas-media-upload-label .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    color: #999;
}

.solas-media-upload-or {
    text-align: center;
    color: #999;
    font-size: 13px;
    margin: 12px 0;
}

/* Media Buttons - Override theme styling */
.solas-media-field .button,
.solas-media-field .solas-media-select,
.solas-media-field .solas-media-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    min-height: auto !important;
    height: auto !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    background: #f7f7f7 !important;
    color: #555 !important;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none !important;
    box-shadow: none !important;
}

.solas-media-field .button:hover,
.solas-media-field .solas-media-select:hover {
    background: #fff !important;
    border-color: #0073aa !important;
    color: #0073aa !important;
}

.solas-media-field .solas-media-remove {
    background: #fff !important;
    border-color: #ddd !important;
    color: #a00 !important;
}

.solas-media-field .solas-media-remove:hover {
    background: #fef2f2 !important;
    border-color: #a00 !important;
    color: #a00 !important;
}

/* Field Description */
.solas-field-description {
    margin-top: 5px;
    font-size: 13px;
    color: #666;
}

/* Field Error */
.solas-field-error {
    margin-top: 5px;
    color: #dc3545;
    font-size: 13px;
    display: none;
}

.solas-form-field.has-error .solas-field-error {
    display: block;
}

.solas-form-field.has-error input,
.solas-form-field.has-error select,
.solas-form-field.has-error textarea {
    border-color: #dc3545;
}

/* Submit Button */
.solas-form-submit {
    margin-top: 25px;
}

.solas-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    min-width: 150px;
}

.solas-submit-btn:hover {
    background-color: #005a87;
}

.solas-submit-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Loading State */
.solas-submit-loading {
    display: flex;
    align-items: center;
    gap: 8px;
}

.solas-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: solas-spin 0.8s linear infinite;
}

@keyframes solas-spin {
    to { transform: rotate(360deg); }
}

/* Messages */
.solas-form-messages {
    margin-top: 20px;
}

.solas-form-message {
    padding: 15px 20px;
    border-radius: 4px;
    font-size: 14px;
}

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

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

/* Success Box - prominent success state after form submission */
.solas-form-success-box {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 2px solid #28a745;
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    margin: 20px 0;
    animation: solas-success-appear 0.4s ease-out;
}

@keyframes solas-success-appear {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.solas-form-success-icon {
    color: #28a745;
    margin-bottom: 20px;
}

.solas-form-success-icon svg {
    animation: solas-checkmark 0.6s ease-out 0.2s both;
}

@keyframes solas-checkmark {
    from {
        stroke-dasharray: 100;
        stroke-dashoffset: 100;
    }
    to {
        stroke-dashoffset: 0;
    }
}

.solas-form-success-text {
    font-size: 16px;
    line-height: 1.6;
    color: #155724;
    font-weight: 500;
}

/* Conditional Fields */
.solas-form-field[data-conditional="true"] {
    display: none;
}

.solas-form-field[data-conditional="true"].is-visible {
    display: block;
}

/* WYSIWYG Editor in Form */
.solas-field-wysiwyg .wp-editor-container {
    border: 1px solid #ddd;
    border-radius: 4px;
}

.solas-field-wysiwyg .wp-editor-container:focus-within {
    border-color: #0073aa;
}

/* Reset theme button styles on TinyMCE toolbar */
.solas-field-wysiwyg .mce-toolbar .mce-btn button {
    padding: 2px 3px;
    border: none;
    background: none;
    color: inherit;
    font-size: inherit;
    line-height: 1;
    transition: none;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.solas-field-wysiwyg .mce-toolbar .mce-btn button:hover,
.solas-field-wysiwyg .mce-toolbar .mce-btn button:focus {
    background: none;
    color: inherit;
    border: none;
}

.solas-field-wysiwyg .mce-toolbar .mce-btn {
    border: 1px solid transparent;
    background: transparent;
    border-radius: 3px;
    margin: 1px;
}

.solas-field-wysiwyg .mce-toolbar .mce-btn:hover,
.solas-field-wysiwyg .mce-toolbar .mce-btn.mce-active {
    border-color: #ddd;
    background: #f0f0f0;
}

.solas-field-wysiwyg .mce-toolbar .mce-ico {
    font-size: 14px;
    line-height: 1;
    width: 20px;
    height: 20px;
}

.solas-field-wysiwyg .mce-toolbar .mce-btn .mce-txt {
    font-size: 13px;
    line-height: 1;
}

.solas-field-wysiwyg .mce-toolbar-grp {
    padding: 2px;
    border-bottom: 1px solid #ddd;
    background: #f9f9f9;
    border-radius: 4px 4px 0 0;
}

.solas-field-wysiwyg .mce-panel {
    border: none;
}

.solas-field-wysiwyg .wp-editor-tabs button,
.solas-field-wysiwyg .wp-editor-tabs .wp-switch-editor {
    padding: 5px 10px;
    border: 1px solid #ddd;
    background: #f1f1f1;
    color: #555;
    font-size: 13px;
    line-height: 1.4;
    height: auto;
    border-radius: 0;
    transition: none;
}

.solas-field-wysiwyg .wp-editor-tabs button:hover,
.solas-field-wysiwyg .wp-editor-tabs .wp-switch-editor:hover {
    background: #f1f1f1;
    color: #333;
    border-color: #ddd;
}

.solas-field-wysiwyg .wp-editor-tabs .wp-switch-editor.switch-tmce:focus,
.solas-field-wysiwyg .wp-editor-tabs .wp-switch-editor.switch-html:focus {
    outline: none;
    box-shadow: none;
}

/* Listbox / dropdown buttons in toolbar */
.solas-field-wysiwyg .mce-toolbar .mce-listbox button {
    padding: 2px 6px;
}

.solas-field-wysiwyg .mce-toolbar .mce-open {
    border-left: 1px solid #ddd;
}

.solas-field-wysiwyg .mce-toolbar .mce-open button {
    padding: 2px 4px;
}

/* Login Required Message */
.solas-form-login-required {
    padding: 20px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    text-align: center;
}

.solas-form-login-required a {
    color: #0073aa;
    font-weight: 600;
}

/* Password Field */
.solas-password-wrapper {
    position: relative;
    display: flex;
    align-items: stretch;
}

.solas-password-wrapper input[type="password"],
.solas-password-wrapper input[type="text"] {
    padding-right: 48px;
    flex: 1;
}

/* Password toggle button - Override all theme styles */
.solas-form .solas-password-toggle,
.solas-password-wrapper .solas-password-toggle,
button.solas-password-toggle {
    position: absolute !important;
    right: 1px !important;
    top: 1px !important;
    bottom: 1px !important;
    width: 42px !important;
    height: auto !important;
    min-height: unset !important;
    max-height: none !important;
    background: #fff !important;
    background-color: #fff !important;
    border: none !important;
    border-radius: 0 3px 3px 0 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #9ca3af !important;
    transition: color 0.15s ease !important;
    padding: 0 !important;
    margin: 0 !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    outline: none !important;
    box-shadow: none !important;
    font-size: inherit !important;
    line-height: 1 !important;
    text-decoration: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.solas-form .solas-password-toggle:hover,
.solas-password-wrapper .solas-password-toggle:hover,
button.solas-password-toggle:hover {
    color: #6b7280 !important;
    background: #fff !important;
    background-color: #fff !important;
}

.solas-form .solas-password-toggle:focus,
.solas-password-wrapper .solas-password-toggle:focus,
button.solas-password-toggle:focus {
    outline: none !important;
    color: #6b7280 !important;
    box-shadow: none !important;
    background: #fff !important;
}

.solas-form .solas-password-toggle:active,
.solas-password-wrapper .solas-password-toggle:active,
button.solas-password-toggle:active {
    color: #4b5563 !important;
    background: #fff !important;
}

/* SVG Eye Icons - Force size and color */
.solas-password-toggle .solas-eye-icon,
.solas-password-toggle svg.solas-eye-icon {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    stroke: currentColor !important;
    fill: none !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    color: inherit !important;
}

/* Show/hide icons based on password state */
.solas-password-toggle .solas-eye-closed {
    display: none !important;
}

.solas-password-toggle.is-visible .solas-eye-open {
    display: none !important;
}

.solas-password-toggle.is-visible .solas-eye-closed {
    display: block !important;
}

/* Forgot Password Link */
.solas-forgot-password-link {
    margin-top: 8px;
    text-align: right;
}

.solas-forgot-password-link a {
    font-size: 13px;
    color: #6b7280;
    text-decoration: none;
    transition: color 0.15s ease;
}

.solas-forgot-password-link a:hover {
    color: #C20D1C;
    text-decoration: underline;
}

/* Checkbox styling */
.solas-checkbox-single {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: normal;
}

.solas-checkbox-single input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
    flex-shrink: 0;
}

.solas-checkbox-text {
    color: #374151;
    font-size: 14px;
    line-height: 1.4;
    user-select: none;
}

/* Login Form Styling */
.solas-login-form {
    max-width: 400px;
}

.solas-login-form .solas-form-submit {
    margin-top: 20px;
}

.solas-login-form .solas-submit-btn {
    width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .solas-form-fields {
        gap: 16px;
    }

    .solas-field-width-half,
    .solas-field-width-third,
    .solas-field-width-two-thirds,
    .solas-field-width-quarter {
        width: 100%;
        flex: 0 0 100%;
    }

    .solas-submit-btn {
        width: 100%;
    }
}

/* Profile Photo Field */
.solas-profile-photo-field {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 8px;
    text-align: center;
}

.solas-profile-photo-preview {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #e5e7eb;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s;
}

.solas-profile-photo-preview:hover {
    border-color: #C20D1C;
}

.solas-profile-photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.solas-profile-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
}

.solas-profile-photo-placeholder .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: #9ca3af;
}

.solas-profile-photo-upload {
    position: relative;
}

.solas-profile-photo-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.solas-profile-photo-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    transition: all 0.2s;
}

.solas-profile-photo-label:hover {
    border-color: #C20D1C;
    color: #C20D1C;
    background: #fef2f2;
}

.solas-profile-photo-label .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.solas-profile-photo-remove {
    padding: 6px 12px !important;
    font-size: 13px !important;
    color: #dc2626 !important;
    border: none !important;
    background: transparent !important;
    cursor: pointer;
}

.solas-profile-photo-remove:hover {
    text-decoration: underline !important;
}

.solas-profile-photo-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-size: 14px;
}

.solas-profile-photo-progress .spinner {
    margin: 0;
}

.solas-profile-photo-error {
    padding: 10px 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    color: #dc2626;
    font-size: 13px;
}

/* =====================================================
   Welcome Widget
   ===================================================== */

.solas-welcome-widget {
    background: transparent;
    border-radius: 12px;
    box-shadow: none;
    padding: 24px;
    margin-bottom: 24px;
}

.solas-welcome-content {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

/* Photo Section */
.solas-welcome-photo {
    flex-shrink: 0;
    text-align: center;
}

.solas-welcome-photo-img {
    width: 120px !important;
    height: 120px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 3px solid rgba(255, 255, 255, 0.3) !important;
    background: rgba(255, 255, 255, 0.1);
    display: block;
    clip-path: circle(50%);
}

.solas-welcome-photo-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.solas-welcome-photo-placeholder .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: rgba(255, 255, 255, 0.6);
}

/* Info Section */
.solas-welcome-info {
    flex: 1;
    min-width: 0;
}

.solas-welcome-greeting {
    font-size: 26px;
    font-weight: 700;
    color: #ffffff !important;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

/* Meta line - afdeling + roles */
.solas-welcome-meta {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 16px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    line-height: 1.6;
}

.solas-welcome-afdeling-text {
    color: rgba(255, 255, 255, 0.85);
}

.solas-welcome-afdeling-text strong {
    color: #ffffff;
    font-weight: 600;
}

.solas-welcome-separator {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 300;
}

/* Role labels - styled like users.php */
.solas-welcome-roles {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

.solas-role-label {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
}

/* Completeness Bar */
.solas-welcome-completeness {
    background: transparent;
    border-radius: 8px;
    padding: 12px 0 0 0;
    margin-top: 12px;
}

.solas-completeness-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.solas-completeness-label {
    font-size: 12px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
}

.solas-completeness-percentage {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
}

.solas-completeness-percentage.complete {
    color: rgba(255, 255, 255, 0.9);
}

.solas-completeness-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
    box-shadow: none;
}

.solas-completeness-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
    min-width: 6px;
}

/* Completeness levels - subtiele kleuren voor rode achtergrond */
.solas-completeness-fill.level-low {
    background: rgba(255, 255, 255, 0.5);
    box-shadow: none;
}

.solas-completeness-fill.level-medium {
    background: rgba(255, 255, 255, 0.6);
    box-shadow: none;
}

.solas-completeness-fill.level-high {
    background: rgba(255, 255, 255, 0.75);
    box-shadow: none;
}

.solas-completeness-fill.level-complete {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: none;
}

.solas-completeness-hint {
    margin-top: 8px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
}

.solas-completeness-hint a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: underline;
    font-weight: 400;
}

.solas-completeness-hint a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Login Required State */
.solas-welcome-login-required {
    text-align: center;
    padding: 32px;
}

.solas-welcome-login-required p {
    color: #6b7280;
    margin: 0 0 16px 0;
}

.solas-welcome-login-required a {
    color: #C20D1C;
    font-weight: 600;
    text-decoration: none;
}

.solas-welcome-login-required a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 600px) {
    .solas-welcome-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .solas-welcome-photo {
        margin-bottom: 8px;
    }

    .solas-welcome-photo-img,
    .solas-welcome-photo-placeholder {
        width: 100px;
        height: 100px;
    }

    .solas-welcome-info {
        width: 100%;
    }

    .solas-welcome-greeting {
        font-size: 22px;
    }

    .solas-welcome-meta {
        justify-content: center;
    }
}

/* =====================================================
   User Dashboard Widget
   ===================================================== */

.solas-dashboard {
    margin-bottom: 24px;
}

/* Snelkoppelingen - horizontal bar above cards */
.solas-dashboard-snelkoppelingen {
    margin-bottom: 20px;
}

.solas-dashboard-snelkoppelingen .solas-dashboard-links {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
}

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

/* Dashboard Cards */
.solas-dashboard-card {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    overflow: hidden;
}

.solas-dashboard-card-header {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.solas-dashboard-card-header h3,
.solas-dashboard-card-header h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
}

.solas-dashboard-card-body {
    padding: 16px 20px;
}

/* Dashboard Text */
.solas-dashboard-text {
    color: #374151;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.solas-dashboard-text a {
    color: #C20D1C;
    text-decoration: none;
    font-weight: 500;
}

.solas-dashboard-text a:hover {
    text-decoration: underline;
}

.solas-dashboard-next {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: #6b7280;
}

.solas-dashboard-next a {
    color: #C20D1C;
}

/* Empty State */
.solas-dashboard-empty {
    color: #9ca3af;
    font-size: 14px;
    text-align: center;
    margin: 0;
    padding: 16px 0;
}

/* Activiteiten List */
.solas-dashboard-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.solas-dashboard-list-item {
    border-bottom: 1px solid #f3f4f6;
}

.solas-dashboard-list-item:last-child {
    border-bottom: none;
}

.solas-dashboard-list-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
}

.solas-dashboard-list-item a:hover {
    background: #f9fafb;
    margin: 0 -20px;
    padding: 12px 20px;
}

.solas-dashboard-item-date {
    flex-shrink: 0;
    width: 50px;
    font-size: 13px;
    font-weight: 600;
    color: #C20D1C;
    text-align: center;
}

.solas-dashboard-item-title {
    flex: 1;
    font-size: 14px;
    color: #374151;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.solas-dashboard-item-badge {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 4px;
    background: #ecfdf5;
    color: #059669;
}

/* Snelkoppelingen Links */
.solas-dashboard-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.solas-dashboard-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    text-decoration: none;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.15s ease;
}

.solas-dashboard-link:hover {
    background: rgba(255, 255, 255, 1);
    color: #C20D1C;
}

.solas-dashboard-link .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: #6b7280;
    transition: color 0.15s ease;
}

.solas-dashboard-link:hover .dashicons {
    color: #C20D1C;
}

/* Dashboard link special styles - Beheerdersdashboard button */
.solas-dashboard-link[href*="wp-admin"]:not([href*="users.php"]):not([href*="post-new.php"]) {
    background: #C20D1C;
    color: #ffffff;
    border-radius: 50px;
}

.solas-dashboard-link[href*="wp-admin"]:not([href*="users.php"]):not([href*="post-new.php"]) .dashicons {
    color: #ffffff;
}

.solas-dashboard-link[href*="wp-admin"]:not([href*="users.php"]):not([href*="post-new.php"]):hover {
    background: #a00b17;
    color: #ffffff;
}

/* Login Required State */
.solas-dashboard-login-required {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    text-align: center;
    padding: 40px 24px;
}

.solas-dashboard-login-required p {
    color: #6b7280;
    margin: 0 0 16px 0;
}

.solas-dashboard-login-required a {
    color: #C20D1C;
    font-weight: 600;
    text-decoration: none;
}

.solas-dashboard-login-required a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 600px) {
    .solas-dashboard-snelkoppelingen .solas-dashboard-links {
        flex-direction: column;
    }

    .solas-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .solas-dashboard-card-header,
    .solas-dashboard-card-body {
        padding: 14px 16px;
    }

    .solas-dashboard-list-item a:hover {
        margin: 0 -16px;
        padding: 12px 16px;
    }
}

/* ==========================================================================
   Already Logged In State (for login form)
   ========================================================================== */

.solas-form-already-logged-in {
    background: transparent;
    border: none;
    border-radius: 12px;
    padding: 32px;
    text-align: center;
}

.solas-logged-in-message {
    font-size: 18px;
    color: #374151;
    margin: 0 0 20px 0;
}

.solas-logged-in-message strong {
    color: #1f2937;
}

.solas-logged-in-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0;
}

.solas-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.solas-btn-primary {
    background: #C20D1C;
    color: #fff !important;
}

.solas-btn-primary:hover {
    background: #a00b17;
    color: #fff !important;
    text-decoration: none;
}

.solas-btn-primary:visited {
    color: #fff !important;
}

.solas-btn-secondary {
    background: #fff;
    color: #374151;
    border: 1px solid #d1d5db;
}

.solas-btn-secondary:hover {
    background: #f3f4f6;
    color: #1f2937;
    text-decoration: none;
}

@media (max-width: 480px) {
    .solas-form-already-logged-in {
        padding: 24px 16px;
    }

    .solas-logged-in-message {
        font-size: 16px;
    }

    .solas-logged-in-actions {
        flex-direction: column;
    }

    .solas-btn {
        width: 100%;
    }
}

/* Forgot Password Link */
.solas-forgot-password-link {
    margin-top: 12px;
    text-align: right;
}

.solas-forgot-password-link-anchor {
    color: #C20D1C;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.solas-forgot-password-link-anchor:hover {
    color: #8a0a14;
    text-decoration: underline;
}
