/*-- BUK Job Manager - Layout Variants - Do not make chnages to this file --*/
/* Centered layout */
.buk-register-centered,
.buk-login-centered,
.buk-reset-password-centered{
    max-width:500px;
    margin:0 auto;
    padding:30px;
    background-color:var(--primary-foreground);
    border-radius:8px;
    box-shadow:0 2px 10px var(--black-10);
}
/* Two columns layout */
.buk-dashboard-two-column .buk-dashboard-content {
    display: flex;
    flex-direction:column;
    gap: 30px;
}

.buk-dashboard-two-column .buk-dashboard-profile {
    flex: 1;
    min-width: 300px;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.buk-dashboard-two-column .buk-dashboard-nav,
.buk-dashboard-two-column .buk-dashboard-sections {
    flex-basis: 100%;
}
/* Card style layout */
.buk-register-card,
.buk-login-card,
.buk-reset-password-card,
.buk-profile-card{
    background-color:var(--primary-foreground);
    border-radius:8px;
    box-shadow:0 2px 10px var(--black-10);
    padding:30px;
}

/* Minimal layout */
.buk-register-minimal,
.buk-login-minimal,
.buk-reset-password-minimal,
.buk-profile-minimal {
    max-width: 600px;
    margin: 0 auto;
}

.buk-register-minimal .buk-form-group label,
.buk-login-minimal .buk-form-group label,
.buk-reset-password-minimal .buk-form-group label,
.buk-profile-minimal .buk-form-group label {
    font-weight: normal;
    font-size: 14px;
    color: #666;
}

.buk-register-minimal .buk-input,
.buk-login-minimal .buk-input,
.buk-reset-password-minimal .buk-input,
.buk-profile-minimal .buk-input,
.buk-register-minimal .buk-textarea,
.buk-login-minimal .buk-textarea,
.buk-reset-password-minimal .buk-textarea,
.buk-profile-minimal .buk-textarea,
.buk-register-minimal .buk-select,
.buk-login-minimal .buk-select,
.buk-reset-password-minimal .buk-select,
.buk-profile-minimal .buk-select {
    border: none;
    border-bottom: 1px solid #ddd;
    border-radius: 0;
    padding: 8px 0;
    background-color: transparent;
}

.buk-register-minimal .buk-button,
.buk-login-minimal .buk-button,
.buk-reset-password-minimal .buk-button,
.buk-profile-minimal .buk-button {
    border-radius: 0;
}
/* Dashboard Widgets */
.buk-profile-image-small {
    width: 60px;
    height: 60px;
}

.buk-profile-image-medium {
    width: 100px;
    height: 100px;
}

.buk-profile-image-large {
    width: 150px;
    height: 150px;
}
/* Widget visibility toggle classes */
.buk-widget-hidden {
    display: none !important;
}
/* Dashboard widget cards */
.buk-dashboard-card {
    background-color:var(--primary-foreground);
    border-radius:var(--border-radius-default);
    box-shadow:0 1px 3px var(--black-10);
    margin-bottom:20px;
    padding:20px;
}
.buk-dashboard-card h3{
    margin-top:0;
    border-bottom:1px solid var(--muted);
    padding-bottom:10px;
}
/* Improved profile summary styling */
.buk-dashboard-profile.buk-dashboard-card {
    display:flex;
    flex-wrap:wrap;
    background-color:var(--muted);
}
.buk-dashboard-profile .buk-profile-image{
    margin-right:20px;
    margin-bottom:15px;
}
.buk-dashboard-profile .buk-profile-details{
    flex:1;
    min-width:200px;
}
/* Animation for tab transitions */
.buk-dashboard-section {
    transition: opacity 0.3s ease-in-out;
}
.buk-dashboard-section.active {
    opacity: 1;
}

.buk-dashboard-section:not(.active) {
    opacity: 0;
    height: 0;
    overflow: hidden;
    padding: 0;
    margin: 0;
    border: none;
}

/*-- Enhance skill tags --*/
.buk-skill-tag{
    font-size:14px;
    display:inline-block;
    padding:4px 10px;
    background-color:var(--tag-background);
    color:var(--tag);
    border-radius:var(--border-radius-md);
    margin-right:5px;
    margin-bottom:5px;
    transition:background-color var(--transition-ease-default);
}

.buk-skill-tag:hover {
    background-color: #e0f0fa;
}

/* Profile page styles */
.buk-profile-card {
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    overflow: hidden;
}

.buk-profile-card-header {
    display: flex;
    padding: 20px;
    background-color: #f9f9f9;
    border-bottom: 1px solid #eee;
}

.buk-profile-image-large {
    width: 100px;
    height: 100px;
    overflow: hidden;
    border-radius: 50%;
    margin-right: 20px;
}

.buk-profile-image-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.buk-profile-card-info {
    flex: 1;
}
.buk-profile-card-section {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.buk-profile-card-section:last-child {
    border-bottom: none;
}

.buk-profile-card-section h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    color: #444;
}

.buk-profile-description p {
    margin-top: 0;
}

.buk-profile-contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.buk-profile-contact-info li {
    margin-bottom: 8px;
}

.buk-contact-label {
    font-weight: 600;
    margin-right: 5px;
}

.buk-company-logo {
    margin-bottom: 15px;
}

.buk-company-logo img {
    max-width: 150px;
    height: auto;
}

.buk-company-name {
    margin-top: 0;
    margin-bottom: 5px;
}

.buk-company-website {
    margin-bottom: 10px;
}

.buk-profile-actions {
    margin-top: 15px;
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .buk-profile-card-header {
        flex-direction: column;
        text-align: center;
    }
    
    .buk-profile-image-large {
        margin: 0 auto 15px;
    }
    
    .buk-profile-card-info {
        text-align: center;
    }
    
    .buk-company-logo {
        text-align: center;
    }
    
    .buk-profile-actions {
        display: flex;
        justify-content: center;
    }
}

/* User Type Registration Links */
.buk-register-links {
    margin-top: 15px;
}

.buk-register-options {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.buk-register-options li {
    margin: 0;
}

.buk-register-options a {
    display: block;
    padding: 8px 15px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.2s ease;
}

.buk-register-options a:hover,
.buk-register-options a:focus {
    background-color: #e9ecef;
    border-color: #adb5bd;
}

/* User Type Badge on Profile */
.buk-profile-user-type {
    display: inline-block;
    padding: 3px 8px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 0.875em;
    color: #495057;
    margin-top: 8px;
}

/* Form Builder Specific Styles */
.buk-form-builder-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.buk-form-builder-table th {
    text-align: left;
    padding: 10px;
    background-color: #f9f9f9;
    border-bottom: 1px solid #ddd;
    color: #444;
    font-weight: 600;
}

.buk-form-builder-table td {
    padding: 12px 10px;
    vertical-align: top;
    border-bottom: 1px solid #eee;
}

.buk-field-row {
    transition: background-color 0.3s ease;
}

.buk-field-row.buk-field-inactive {
    background-color: #f7f7f7;
    color: #999;
}

.buk-field-row.buk-field-active {
    background-color: #fff;
}



/* Field status indicators */
.buk-field-status {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    margin-left: 5px;
    vertical-align: middle;
}

.buk-field-status-required {
    background-color: #f8d7da;
    color: #721c24;
}

.buk-field-status-optional {
    background-color: #e2e3e5;
    color: #383d41;
}

/* Responsive layout for form builder */
@media screen and (max-width: 782px) {
    .buk-form-builder-table,
    .buk-form-builder-table thead,
    .buk-form-builder-table tbody,
    .buk-form-builder-table th,
    .buk-form-builder-table td,
    .buk-form-builder-table tr {
        display: block;
    }
    
    .buk-form-builder-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    .buk-form-builder-table tr {
        border: 1px solid #ddd;
        margin-bottom: 15px;
    }
    
    .buk-form-builder-table td {
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50%;
        min-height: 30px;
    }
    
    .buk-form-builder-table td:before {
        position: absolute;
        top: 12px;
        left: 10px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        font-weight: bold;
    }
    
    /* Add labels */
    .buk-form-builder-table td.buk-field-enabled:before { content: 'Enabled'; }
    .buk-form-builder-table td.buk-field-name:before { content: 'Field'; }
    .buk-form-builder-table td.buk-field-label:before { content: 'Label'; }
    .buk-form-builder-table td.buk-field-placeholder:before { content: 'Placeholder'; }
    .buk-form-builder-table td.buk-field-required:before { content: 'Required'; }
    .buk-form-builder-table td.buk-field-validation:before { content: 'Validation Message'; }
}

/* Visual feedback when field has been successfully validated */
.buk-input.is-valid,
.buk-textarea.is-valid,
.buk-select.is-valid {
    border-color: #46b450;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path fill="%2346b450" d="M6.5 12.5l-4-4 1.5-1.5 2.5 2.5 5-5 1.5 1.5-7 7z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px 16px;
    padding-right: 35px;
}

/* Field help text styling */
.buk-field-help {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
    line-height: 1.4;
}

/* Improved file input styling */
.buk-file-input-wrapper {
    position: relative;
}

.buk-file-input {
    opacity: 0.01;
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    cursor: pointer;
    z-index: 5;
}

.buk-file-input-button {
    display: inline-block;
    padding: 8px 12px;
    background-color: #f7f7f7;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
}

.buk-file-input-text {
    display: inline-block;
    margin-left: 8px;
    font-size: 14px;
    color: #666;
}

/* Make form section headers more prominent */
.buk-form-section h3 {
    font-size: 18px;
    color: #0073aa;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-weight: 600;
}