/* Vakwerkgevers Plugin Styles */

:root {
    --vw-primary: #F2A900;
    --vw-primary-dark: #d89600;
    --vw-secondary: #2c3e50;
    --vw-light: #f8f9fa;
    --vw-border: #dee2e6;
    --vw-error: #dc3545;
    --vw-success: #28a745;
}

.vakwerkgevers-auth-container {
    max-width: 500px;
    margin: 40px auto;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Tab Navigation */
.vw-auth-tabs {
    display: flex;
    background: var(--vw-light);
    border-bottom: 2px solid var(--vw-border);
}

.vw-tab-button {
    flex: 1;
    padding: 16px 20px;
    background: transparent;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: var(--vw-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.vw-tab-button:hover {
    background: rgba(242, 169, 0, 0.1);
}

.vw-tab-button.active {
    color: var(--vw-primary);
    background: #fff;
}

.vw-tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--vw-primary);
}

/* Form Container */
.vw-form-container {
    padding: 30px;
    display: none;
}

.vw-form-container.active {
    display: block;
}

.vw-form-container h2 {
    margin: 0 0 25px 0;
    color: var(--vw-secondary);
    font-size: 24px;
    font-weight: 700;
}

/* Form Groups */
.vw-form-group {
    margin-bottom: 20px;
}

.vw-form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

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

.vw-form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--vw-secondary);
    font-weight: 600;
    font-size: 14px;
}

.vw-form-group input[type="text"],
.vw-form-group input[type="email"],
.vw-form-group input[type="password"],
.vw-form-group input[type="tel"],
.vw-form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--vw-border);
    font-size: 15px;
    transition: all 0.3s ease;
    background: #fff;
}

.vw-form-group input:focus,
.vw-form-group select:focus {
    outline: none;
    border-color: var(--vw-primary);
    box-shadow: 0 0 0 3px rgba(242, 169, 0, 0.1);
}

/* Select Styling */
.vw-form-group select {
    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='%232c3e50' 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 12px center;
    background-size: 20px;
    padding-right: 40px;
}

/* Checkbox Groups */
.vw-remember-group,
.vw-terms-group {
    margin: 20px 0;
}

.vw-remember-group label,
.vw-terms-group label {
    display: flex;
    align-items: flex-start;
    font-weight: 400;
    cursor: pointer;
}

.vw-remember-group input[type="checkbox"],
.vw-terms-group input[type="checkbox"] {
    margin-right: 8px;
    margin-top: 3px;
    width: 18px;
    height: 18px;
    accent-color: var(--vw-primary);
}

.vw-terms-group a {
    color: var(--vw-primary);
    text-decoration: none;
}

.vw-terms-group a:hover {
    text-decoration: underline;
}

/* Submit Button */
.vw-submit-btn {
    width: 100%;
    padding: 14px 20px;
    background: var(--vw-primary);
    color: #fff;
    border: none;
    
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.vw-submit-btn:hover {
    background: var(--vw-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(242, 169, 0, 0.3);
}

.vw-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Form Messages */
.vw-form-messages {
    margin: 15px 0;
    padding: 12px;
    
    display: none;
    font-size: 14px;
}

.vw-form-messages.vw-error {
    background: #f8d7da;
    color: var(--vw-error);
    border: 1px solid #f5c6cb;
    display: block;
}

.vw-form-messages.vw-success {
    background: #d4edda;
    color: var(--vw-success);
    border: 1px solid #c3e6cb;
    display: block;
}

/* Form Footer */
.vw-form-footer {
    margin-top: 20px;
    text-align: center;
}

.vw-forgot-link {
    color: var(--vw-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.vw-forgot-link:hover {
    text-decoration: underline;
}

/* Password Strength Indicator */
.vw-password-strength {
    margin-top: 8px;
    height: 4px;
    background: var(--vw-border);
    
    overflow: hidden;
    display: none;
}

.vw-password-strength.show {
    display: block;
}

.vw-password-strength::after {
    content: '';
    display: block;
    height: 100%;
    
    transition: all 0.3s ease;
}

.vw-password-strength.weak::after {
    width: 33%;
    background: var(--vw-error);
}

.vw-password-strength.medium::after {
    width: 66%;
    background: #ffc107;
}

.vw-password-strength.strong::after {
    width: 100%;
    background: var(--vw-success);
}

/* Werkgever Fields */
.vw-werkgever-fields {
    padding: 20px;
    background: var(--vw-light);
    
    margin: 20px 0;
}

/* Logged In View */
.vw-logged-in-box {
    padding: 40px;
    text-align: center;
}

.vw-logged-in-box h3 {
    color: var(--vw-secondary);
    font-size: 24px;
    margin-bottom: 15px;
}

.vw-logged-in-box p {
    color: #6c757d;
    font-size: 16px;
    margin-bottom: 30px;
}

.vw-user-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.vw-btn {
    padding: 12px 24px;
    
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.vw-btn-primary {
    background: var(--vw-primary);
    color: #fff;
}

.vw-btn-primary:hover {
    background: var(--vw-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(242, 169, 0, 0.3);
}

.vw-btn-secondary {
    background: #fff;
    color: var(--vw-primary);
    border: 2px solid var(--vw-primary);
}

.vw-btn-secondary:hover {
    background: var(--vw-primary);
    color: #fff;
}

.vw-btn-logout {
    background: #6c757d;
    color: #fff;
}

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

/* Loading State */
.vw-btn-loader {
    display: none;
}

.vw-loading .vw-btn-text {
    display: none;
}

.vw-loading .vw-btn-loader {
    display: inline-block;
}

/* Dashboard Styles */
.vw-dashboard-container {
    display: flex;
    min-height: 600px;
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Dashboard Sidebar */
.vw-dashboard-sidebar {
    width: 280px;
    background: linear-gradient(135deg, var(--vw-primary), #ffb800);
    color: #000;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 10px rgba(242, 169, 0, 0.2);
}

.vw-sidebar-header {
    padding: 30px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.vw-user-avatar {
    margin-bottom: 15px;
}

.vw-user-avatar img {
    
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.vw-user-name {
    margin: 0 0 5px 0;
    font-size: 20px;
    font-weight: 700;
    color: #000;
}

.vw-user-type {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--vw-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Sidebar Navigation */
.vw-sidebar-nav {
    flex: 1;
    padding: 20px 0;
}

.vw-sidebar-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.vw-sidebar-nav li {
    margin-bottom: 5px;
}

.vw-sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #000;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 500;
}

.vw-sidebar-nav a:hover {
    background: rgba(0, 0, 0, 0.1);
    padding-left: 25px;
    color: #000;
}

.vw-sidebar-nav li.active a {
    background: var(--vw-secondary);
    color: #fff;
    padding-left: 25px;
    font-weight: 600;
}

.vw-nav-icon {
    margin-right: 12px;
    font-size: 16px;
    width: 20px;
    text-align: center;
    font-weight: 600;
}

.vw-sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.vw-sidebar-footer .vw-logout-btn {
    background: var(--vw-secondary);
    color: #fff;
    border: none;
    width: 100%;
    padding: 12px;
    
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.vw-sidebar-footer .vw-logout-btn:hover {
    background: #1a252f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.3);
}

/* Dashboard Main Content */
.vw-dashboard-main {
    flex: 1;
    padding: 30px;
    background: #f8f9fa;
    overflow-y: auto;
}

.vw-section-header {
    margin-bottom: 30px;
}

.vw-section-header h2 {
    margin: 0 0 8px 0;
    color: var(--vw-secondary);
    font-size: 28px;
    font-weight: 700;
}

.vw-section-subtitle {
    margin: 0;
    color: #6c757d;
    font-size: 16px;
}

/* Dashboard Grid */
.vw-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.vw-dashboard-card {
    background: #fff;
    
    padding: 25px;
    border: 1px solid var(--vw-border);
    transition: all 0.3s ease;
}

.vw-dashboard-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.vw-dashboard-card h3 {
    margin: 0 0 15px 0;
    color: var(--vw-secondary);
    font-size: 18px;
    font-weight: 600;
}

.vw-status-active {
    color: var(--vw-success);
    font-weight: 600;
    margin: 10px 0;
}

.vw-status-complete {
    color: var(--vw-success);
    font-weight: 600;
    margin: 10px 0;
}

.vw-status-incomplete {
    color: #ffc107;
    font-weight: 600;
    margin: 10px 0;
}

.vw-progress-bar {
    width: 100%;
    height: 8px;
    background: var(--vw-border);
    
    overflow: hidden;
    margin: 15px 0;
}

.vw-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--vw-primary), var(--vw-primary-dark));
    
    transition: width 0.3s ease;
}

.vw-link {
    color: var(--vw-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

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

/* Quick Actions */
.vw-quick-actions {
    background: #fff;
    
    padding: 25px;
    border: 1px solid var(--vw-border);
}

.vw-quick-actions h3 {
    margin: 0 0 20px 0;
    color: var(--vw-secondary);
    font-size: 18px;
    font-weight: 600;
}

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

.vw-action-btn {
    padding: 12px 20px;
    background: var(--vw-light);
    color: var(--vw-secondary);
    text-decoration: none;
    
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid var(--vw-border);
}

.vw-action-btn:hover {
    background: var(--vw-primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(242, 169, 0, 0.3);
}

.vw-action-icon {
    margin-right: 8px;
    font-weight: bold;
    font-size: 14px;
}

/* Zoekprofiel Section */
.vw-current-filters {
    background: #fff;
    
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid var(--vw-border);
}

.vw-current-filters h3 {
    margin: 0 0 20px 0;
    color: var(--vw-secondary);
    font-size: 18px;
    font-weight: 600;
}

.vw-filter-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.vw-filter-item-display {
    background: var(--vw-light);
    padding: 12px 16px;
    
    border: 1px solid var(--vw-border);
}

.vw-filter-label {
    font-weight: 600;
    color: var(--vw-secondary);
    font-size: 13px;
    text-transform: uppercase;
}

.vw-filter-value {
    color: var(--vw-primary);
    font-weight: 600;
    margin-left: 8px;
}

.vw-filter-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.vw-filter-suggestions,
.vw-search-preferences,
.vw-no-filters {
    background: #fff;
    
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid var(--vw-border);
}

.vw-filter-suggestions h3,
.vw-search-preferences h3 {
    margin: 0 0 15px 0;
    color: var(--vw-secondary);
    font-size: 18px;
    font-weight: 600;
}

/* Form Styling for Dashboard */
.vw-form {
    background: #fff;
    
    padding: 25px;
    border: 1px solid var(--vw-border);
}

.vw-form-section {
    margin-bottom: 30px;
}

.vw-form-section:last-child {
    margin-bottom: 0;
}

.vw-form-section h3 {
    margin: 0 0 20px 0;
    color: var(--vw-secondary);
    font-size: 18px;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--vw-border);
}

.vw-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--vw-border);
    
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
    transition: all 0.3s ease;
}

.vw-form-group textarea:focus {
    outline: none;
    border-color: var(--vw-primary);
    box-shadow: 0 0 0 3px rgba(242, 169, 0, 0.1);
}

.vw-form-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--vw-border);
}

.vw-form-message {
    font-size: 14px;
    font-weight: 600;
}

/* Settings Sections */
.vw-settings-section {
    background: #fff;
    
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid var(--vw-border);
}

.vw-settings-section h3 {
    margin: 0 0 20px 0;
    color: var(--vw-secondary);
    font-size: 18px;
    font-weight: 600;
}

.vw-danger-zone {
    border-color: var(--vw-error);
    background: #fff5f5;
}

.vw-danger-zone h3 {
    color: var(--vw-error);
}

.vw-btn-danger {
    background: var(--vw-error);
    color: #fff;
    border: none;
}

.vw-btn-danger:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* Dashboard Message */
.vw-dashboard-message {
    text-align: center;
    padding: 40px;
    background: #fff;
    
    border: 1px solid var(--vw-border);
    color: var(--vw-secondary);
}

.vw-dashboard-message a {
    color: var(--vw-primary);
    text-decoration: none;
    font-weight: 600;
}

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

/* Auth Button Styling */
.vw-auth-redirect-btn {
    padding: 14px 28px;
    background: var(--vw-primary);
    color: #fff;
    border: none;
    
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.vw-auth-redirect-btn:hover {
    background: var(--vw-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(242, 169, 0, 0.3);
    color: #fff;
}

/* Account Type Selection */
.vw-account-type-description {
    margin: 15px 0;
    padding: 15px;
    background: var(--vw-light);
    
    border: 1px solid var(--vw-border);
}

.vw-type-info {
    margin: 0;
}

.vw-type-info p {
    margin: 0;
    color: var(--vw-secondary);
    font-size: 14px;
    line-height: 1.5;
}

.vw-account-type-warning {
    margin: 15px 0;
    padding: 15px;
    background: #fff8e1;
    border: 1px solid #ffcc02;
    
}

.vw-warning-text {
    margin: 0;
    color: #e65100;
    font-size: 14px;
}

/* Type-specific success messages */
.vw-form-message.vw-success {
    background: #d4edda;
    color: var(--vw-success);
    border: 1px solid #c3e6cb;
    padding: 10px 12px;
    
    font-size: 14px;
    margin-top: 10px;
}

.vw-form-message.vw-error {
    background: #f8d7da;
    color: var(--vw-error);
    border: 1px solid #f5c6cb;
    padding: 10px 12px;
    
    font-size: 14px;
    margin-top: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .vw-dashboard-container {
        flex-direction: column;
        margin: 10px;
    }
    
    .vw-dashboard-sidebar {
        width: 100%;
        position: relative;
    }
    
    .vw-dashboard-main {
        padding: 20px;
    }
    
    .vw-dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .vw-action-buttons {
        flex-direction: column;
    }
    
    .vw-action-btn {
        text-align: center;
    }
    
    .vw-filter-list {
        grid-template-columns: 1fr;
    }
    
    .vw-form-row {
        flex-direction: column;
    }
    
    .vw-form-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .vw-sidebar-nav a {
        padding: 15px 20px;
    }
    
    .vw-nav-icon {
        font-size: 20px;
    }
}

@media (max-width: 600px) {
    .vakwerkgevers-auth-container {
        margin: 20px;
        
    }
    
    .vw-form-container {
        padding: 20px;
    }
    
    .vw-form-row {
        flex-direction: column;
    }
    
    .vw-user-actions {
        flex-direction: column;
    }
    
    .vw-btn {
        width: 100%;
    }
    
    .vw-dashboard-main {
        padding: 15px;
    }
    
    .vw-section-header h2 {
        font-size: 24px;
    }
}