/*-- BUK Job Manager - Main Stylesheet - Do not make chnages to this file --*/
:root{
    --black-5:rgba(24,24,24,.05);
    --black-10:rgba(24,24,24,.1);
    --black-50:rgba(24,25,24,.5);
    --white-100:rgba(255,255,255,1);
    --primary:rgba(24,24,27,1);
    --primary-foreground:rgba(250,250,250,1);
    --muted:rgba(244,244,245,1);
    --muted-foreground:rgba(113,113,122,1);
    --gray:rgba(229,231,235,1);
    --border:rgba(228,228,231,.7);
    --input:rgba(228,228,231,1);
    --error:rgba(239,68,68,1);
    --error-notice:rgba(153,27,27,1);
    --error-notice-background:rgba(254,226,226,1);
    --success:rgba(16,185,129,1);
    --success-notice:rgba(6,95,70,1);
    --success-notice-backgound:rgba(209,250,229,1);
    --warning:rgba(245,158,11,1);
    --warning-notice:rgba(146,64,14,1);
    --warning-notice-background:rgba(254,243,199,1);
    --info:rgba(6,182,212,1);
    --info-notice:rgba(21,94,117,1);
    --info-notice-background:rgba(236,254,255,1);
    --link:rgba(59,130,246,1);
    --link-hover:rgba(30,64,175,1);
    --tag:rgba(3,105,161,1);
    --tag-background:rgba(240,249,255,1);
    --badge-fulltime:rgba(21,128,61,1);
    --badge-fulltime-background:rgba(240,253,244,1);
    --badge-parttime:rgba(3,105,161,1);
    --badge-parttime-background:rgba(240,249,255,1);
    --badge-contract:rgba(194,65,12,1);
    --badge-contract-background:rgba(255,247,237,1);
    --badge-temporary:rgba(109,40,217,1);
    --badge-temporary-background:rgba(245,243,255,1);
    --badge-internship:rgba(190,18,60,1);
    --badge-internship-background:rgba(255,241,242,1);
    --badge-outsourcing:rgba(161,98,7,1);
    --badge-outsourcing-background:rgba(254,252,232,1);
    --pending-background:rgba(100,116,139,1);
    --reviewed-background:rgba(56,130,246,1);
    --interviewing-background:rgba(16,185,129,1);
    --offered-background:rgba(202,138,4,1);
    --hired-background:rgba(22,163,74,1);
    --rejected-background:rgba(239,68,68,1);
    --facebook:rgba(59,89,152,1);
    --twitter:rgba(29,161,242,1);
    --linkedin:rgba(0,119,181,1);
    --mail:rgba(234,67,53,1);
    --line-height-default:1.8;
    --transition-ease-default:.2s ease;
}
/* General Styles */
.buk-template--page{
    font-family:var(--font-default);
    font-size:var(--font-regular);
    font-weight:var(--font-w-normal);
    color:var(--primary);
    line-height:var(--line-height-default);
    min-height:100vh;
}
.buk-container{
    max-width:1200px;
    margin:0 auto;
    padding:0 20px;
}
/* Pages Header */
.buk-template--header{
    display:flex;
    flex-wrap:wrap;
    justify-content:space-between;
    align-items:center;
    padding:3.125rem 0;
}
.buk-template--title{
    flex:1;
}
.buk-template--title h2{
    font-size:var(--fs-md);
}
.buk-template--title h2 .h2-sm{
    font-size:1rem;
    font-weight:var(--fw-base);
    margin-left:15px;
}
.buk-template--header_actions{
    display:flex;
    flex-shrink:0;
    gap:10px;
}
.buk-dashboard--nav h4{
    margin-bottom:10px;
}
.buk-dashboard--nav ul{
    display:flex;
    flex-direction:column;
    gap:10px;
}
.buk-dashboard--nav a{
    color:var(--primary);
    padding:10px;
}
.buk-dashboard--nav a:hover{
    background:var(--muted);
    transition:all .2s ease-in;
}
/* Form Styles */
.buk-form{
    margin-bottom:30px;
}
.buk-form-section{
    margin-bottom:30px;
    padding-bottom:20px;
}
.buk-form-section h3{
    font-weight:var(--font-w-bold);
    margin-bottom:20px;
}
.buk-form-row{
    position:relative;
    margin-bottom:1.25rem;
}
.buk-form-row-half{
    display:flex;
    flex-wrap:wrap;
    gap:1.25rem;
}
.buk-form-row-half .buk-form-group{
    flex:1;
    min-width:200px;
}
.buk-form-group{
    position:relative;
}
#buk-account-form .buk-form-group{
    max-width:31.25rem;
}
#buk-account-form .buk-form-row > div+div{
    margin-top:1.25rem;
}
.buk-form-group label{
    display:block;
    margin-bottom:10px;
}
.buk-textarea{
    min-height:200px;
    resize:vertical;
}
.buk-checkbox-group label{
    display:flex;
    align-items:center;
    font-weight:normal;
}
.buk-checkbox-group input[type="checkbox"]{
    margin-right:8px;
}
.buk-form-help{
    font-size:var(--font-sm);
    margin-top:.625rem;
}
.buk-file-input-content{
    position:relative;
    max-width:17.5rem;
    background-color:var(--muted);
    padding:.938rem;
}
.buk-file-input-content .buk-form-help{
    margin-top:0;
}
.buk-close-button{
    position:relative;
    display:flex;
    align-items:center;
    justify-content:center;
    width:40px;
    height:40px;
    border-radius:50%;
    padding:0;
}
.buk-close-button span{
    width:1px;
    height:25px;
    background:var(--primary);
    transform:rotate(45deg);
}
.buk-close-button span+span{
    transform:rotate(-45deg);
}
.buk-button--wicon{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    line-height:0;
}
.buk-button--wicon .bookmark-icon svg{
    width:18px;
    height:auto;
}
#buk_profile_profile_image{
    pointer-events:none;
}
.buk-profile-image-input{
    position: relative;
    display:inline-block;
}
.buk-profile-image-preview{
    position:relative;
    width:100px;
    height:100px;
    border-radius:50%;
    overflow:hidden;
    cursor:pointer;
    border:1px solid var(--muted);
}
.buk-profile-image-preview img{
    width:100%;
    height:100%;
    object-fit:cover;
}
.buk-camera-icon{
    position:absolute;
    bottom:0;
    right:0;
    width:32px;
    height:32px;
    border-radius: 50%;
    background-color:var(--link);
    color:var(--primary-foreground);
    border:1px solid var(--primary-foreground);
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    box-shadow:0 2px 4px var(--black-10);
    transition:all 0.2s ease;
    padding:0;
    z-index:10;
}
.buk-camera-icon svg{
    width:20px;
    height:auto;
    fill:var(--primary-foreground);
}
.buk-camera-icon:hover{
    background-color:var(--link);
}
/* Modal Styles */
.buk-modal{
    display:none;
    position:fixed;
    z-index:9999;
    left:0;
    top:0;
    width:100%;
    height:100%;
    background-color:var(--black-50);
    overflow:auto;
}
.buk-modal-content{
    background-color:var(--primary-foreground);
    margin:10% auto;
    max-width: 500px;
    border-radius:var(--border-radius-default);
    box-shadow:0 4px 6px var(--black-10);
    animation:buk-modal-fadein 0.3s;
}
.buk-modal-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:15px 20px;
    border-bottom:1px solid var(--border);
}
.buk-modal-header h3{
    margin:0;
}
.buk-modal-close{
    font-size:24px;
    background:transparent;
    border:none;
    line-height:1;
    cursor:pointer;
    color:var(--muted-foreground);
}
.buk-modal-close:hover{
    color: var(--primary);
}
.buk-modal-body{
    padding:20px;
}
.buk-modal-footer{
    display:flex;
    justify-content:flex-end;
    gap:10px;
    padding:15px 20px;
    border-top:1px solid var(--border);
}
.buk-image-upload-container{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:20px;
}
.buk-image-preview-container{
    width:150px;
    height:150px;
    border-radius:50%;
    overflow:hidden;
    border:2px solid var(--border);
}
.buk-image-preview-container img{
    width:100%;
    height:100%;
    object-fit:cover;
}
.buk-image-upload-controls{
    display:flex;
    gap:10px;
}
.buk-account-nav{
    margin:0 0 20px;
}
.buk-tabs-nav{
    display:flex;
    border-bottom:1px solid var(--border);
}
.buk-tabs-nav li{
    margin:0 5px 0 0;
}
.buk-tabs-nav a{
    display:block;
    padding:10px 15px;
    color:var(--muted-foreground);
    transition:all 0.2s ease;
}
.buk-tabs-nav li.active a{
    color:var(--primary);
    margin-bottom: -1px;
}
.buk-tabs-nav a:hover{
    color:var(--primary);
}
.buk-tab-content{
    display:none;
}
.buk-tab-content.active{
    display:block;
    animation:fadeIn 0.3s ease-in-out;
}
/* Section headers in profile/account */
.buk-section-header{
    margin-bottom:20px;
    padding-bottom:10px;
    border-bottom:1px solid var(--border);
}
.buk-section-header h3{
    font-size:var(--font-l);
    margin-top:0;
    margin-bottom:8px;
}
.buk-section-content{
    margin-bottom:30px;
}
/* Profile Basic Info */
.buk-profile-basic-info,.buk-profile-section{
    margin-bottom:1.875rem;
}
.buk-profile-summary{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
}
.buk-profile-image{
    width:6.25rem;
    height:6.25rem;
    border:1px solid var(--border);
    border-radius:50%;
    overflow:hidden;
    margin-right:1.25rem;
    flex-shrink:0;
}
.buk-profile-details{
    flex:1;
    min-width:200px;
}
.buk-profile-name{
    font-size:var(--font-l);
    margin-top:0;
    margin-bottom:5px;
}
.buk-profile-about{
    margin-top:20px;
    margin-bottom:30px;
}
/* Contact Information List */
.buk-profile-contact-info{
    list-style: none;
    padding: 0;
    margin: 0;
}
.buk-profile-contact-info li{
    margin-bottom:10px;
}
/* Form Submit Button */
.buk-form-submit{
    margin-top:30px;
    padding-top:20px;
    border-top:1px solid var(--border);
}
.buk-form-submit button{
    font-size:clamp(.75rem,.39vi + .66rem, 1.125rem);
    background:var(--jpp-primary);
    color:var(--jpp-white);
    height:clamp(3.125rem,1.29vi + 2.82rem, 4.375rem);
    line-height:clamp(3.125rem,1.29vi + 2.82rem, 4.375rem);
    padding:0 clamp(.938rem,.32vi + .86rem,1.25rem);
}
/* Notices */
.buk-notice{
    font-size:var(--fs-sm);
    position:fixed;
    bottom:1.25rem;
    right:1.25rem;
    width:17.5rem;
    padding:.938rem;
    border-radius:var(--border-radius-default);
    border:2px solid;
    animation:all .2s ease-in;
    z-index:9999;
}
.buk-notice-error{
    background-color:var(--error-notice-background);
    border-color:var(--error);
    color:var(--error-notice);
}
.buk-notice-success{
    background-color:var(--success-notice-backgound);
    border-color:var(--success);
    color:var(--success-notice);
}
.buk-notice-warning{
    background-color:var(--warning-notice-background);
    border-color:var(--warning);
    color:var(--warning-notice);
}
.buk-notice-info{
    background-color:var(--info-notice-background);
    border-color: var(--info);
    color:var(--info-notice);
}
.buk-notice ul{
    margin:0;
    padding-left:20px;
}
/* Specific positioning for login notices */
.buk-login .buk-notice{
    position:fixed;
    right:20px;
    bottom:20px;
    z-index: 100;
    max-width:300px;
    box-shadow:0 1px 3px var(--black-10);
}
/* Dashboard Styles */
.buk-dashboard-profile{
    display:flex;
    margin-bottom:30px;
    padding:20px;
}
.buk-profile-image img{
    width:100%;
    height:100%;
    object-fit:cover;
}
.buk-profile-details{
    flex:1;
}
/* Password toggle styling */
.buk-password-wrapper{
    position:relative;
    width:100%;
}
.buk-password-toggle{
    position:absolute;
    right:10px;
    top:50%;
    transform:translateY(-50%);
    cursor:pointer;
    line-height:0;
}
.buk-password-toggle:hover{
    color:var(--primary);
}
/* Form validation feedback */
.buk-input-error{
    font-size:var(--font-m);
    margin-top:5px;
    color:var(--error);
    animation:fadeIn 0.3s ease-in-out;
}
.buk-field-row input[type="text"],
.buk-field-row textarea {
    width: 100%;
}
.buk-field-enabled{
    width:60px;
    text-align: center;
}
.buk-field-name{
    width:150px;
}
.buk-field-required{
    width:80px;
    text-align:center;
}
.buk-field-label,
.buk-field-placeholder,
.buk-field-validation{
    width:auto;
}
.buk-form-builder-form .description{
    font-size:var(--font-m);
    font-style:italic;
    margin-top:5px;
}
/* Form field styling for dynamic placeholders */
.buk-input::placeholder,
.buk-textarea::placeholder,
.buk-select::placeholder{
    color:var(--muted-foreground);
    opacity:1;
}
.buk-input:focus::placeholder,
.buk-textarea:focus::placeholder,
.buk-select:focus::placeholder{
    color:var(--muted);
}
/* Required field indicator */
.buk-form-row label .required{
    color:var(--error);
    margin-left: 3px;
}
/* Dynamic field validation states */
.buk-input.has-error,
.buk-textarea.has-error,
.buk-select.has-error {
    border-color:var(--error);
}

.buk-form-group.has-success .buk-input,
.buk-form-group.has-success .buk-textarea,
.buk-form-group.has-success .buk-select{
    border-color:var(--success);
}

.buk-form-group.has-success::after{
    content:"✓";
    color:var(--success);
    position:absolute;
    right:10px;
    top:50%;
    transform:translateY(-50%);
}
/* Authentication Notice Styling */
.buk-notice-auth{
    font-size:15px;
    position:fixed;
    right:20px;
    bottom:20px;
    max-width:300px;
    padding:15px 20px;
    margin:20px 0;
    border-radius:var(--border-radius-default);
    line-height:1.5;
    background-color:var(--warning-notice-background);
    border-left:4px solid var(--warning);
    box-shadow:0 2px 4px var(--black-10);
    color:var(--warning-notice);
    transition:all 0.3s ease;
}
.buk-redirect-notice {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    animation: buk-fade-in 0.5s ease-in-out;
}
.buk-notice-icon{
    display:inline-block;
    width:24px;
    height:24px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23f9a825" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"></path><circle cx="9" cy="7" r="4"></circle><path d="M22 21v-2a4 4 0 0 0-3-3.87"></path><path d="M16 3.13a4 4 0 0 1 0 7.75"></path></svg>');
    background-repeat:no-repeat;
    margin-right:15px;
}
.buk-notice-message{
    flex:1;
}
.buk-loader{
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 193, 7, 0.3);
    border-radius: 50%;
    border-top-color: #f9a825;
    animation: buk-spinner 1s linear infinite;
    margin-left: 15px;
}
/* Star Rating Styles */
/* Enhanced Star Rating Styles */
.buk-star-rating {
    display: inline-flex;
    margin-top: 5px;
    position: relative;
}

.buk-star-rating input {
    display: none;
}

.buk-star-rating label {
    padding: 0;
    margin: 0 2px;
    cursor: pointer;
    font-size: 20px;
    display: inline-block;
    transition: color 0.2s ease;
}

.buk-star-rating label .dashicons {
    color: #ccc;
    transition: color 0.2s ease;
    font-size: 24px;
    width: auto;
    height: auto;
}

/* Fix for hover effects to work correctly */
.buk-star-rating label:hover .dashicons,
.buk-star-rating label.hover .dashicons {
    color: #ffc107;
}

/* Ensure selected state is always preserved */
.buk-star-rating label.selected .dashicons {
    color: #ffc107;
}

/* Prevent label click propagation */
.buk-star-rating label {
    z-index: 1;
    position: relative;
}

/* Star Rating Display in Profile */
.buk-star-rating-display {
    display: flex;
    align-items: center;
}

.buk-star-rating-display .dashicons {
    color: #ccc;
    font-size: 20px;
    width: auto;
    height: auto;
    margin-right: 2px;
}

.buk-star-rating-display .dashicons.active {
    color: #ffc107;
}

.buk-rating-value {
    margin-left: 5px;
    font-size: 0.9em;
    color: #666;
}
/* Work History and Education History Fields */
.buk-work-history-container,
.buk-education-history-container {
    margin-bottom: 20px;
}

.buk-work-history-item,
.buk-education-history-item {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 15px;
    position: relative;
}

.buk-work-field,
.buk-education-field {
    margin-bottom: 12px;
}

.buk-work-dates,
.buk-education-dates {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
}

.buk-work-date-field,
.buk-education-date-field {
    flex:1;
}
.buk-work-actions,
.buk-education-actions{
    text-align:right;
    margin-top:.938rem;
}
.buk-add-work-row,
.buk-add-education-row{
    margin-top:.938rem;
}
/* Work History on Profile Page */
.buk-work-history-list,
.buk-education-history-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.buk-work-title,
.buk-education-title {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.buk-work-company {
    font-style: italic;
    color: #666;
    margin-bottom: 5px;
}

.buk-education-degree {
    font-style: italic;
    margin-bottom: 5px;
}

.buk-work-dates,
.buk-education-dates {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 8px;
}

.buk-work-description p,
.buk-education-description p {
    margin-top: 5px;
    margin-bottom: 5px;
}

/* Responsive styles for mobile */
@media only screen and (max-width: 768px) {
    .buk-experience-dates,
    .buk-education-dates {
        flex-direction: column;
        gap: 8px;
    }
    
    .buk-work-experience-item,
    .buk-education-history-item {
        padding: 10px;
    }
}
/* Responsive Styles */
@media (max-width: 768px) {
    .buk-tabs-nav {
        flex-wrap: wrap;
    }
    
    .buk-tabs-nav li {
        margin-bottom: 5px;
    }
    
    .buk-profile-summary {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .buk-profile-image {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .buk-profile-details {
        text-align: center;
    }
    
    .buk-profile-header {
        flex-direction: column;
    }
    
    .buk-profile-title {
        margin-bottom: 15px;
    }
    
    .buk-profile-actions {
        margin-left: 0;
        text-align: center;
    }
    .buk-form-row-half {
        flex-direction: column;
        gap: 10px;
    }
    
    .buk-dashboard-nav ul {
        flex-wrap: wrap;
    }
    
    .buk-dashboard-nav li {
        margin-bottom: 5px;
    }
    
    .buk-dashboard-profile {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .buk-table th:nth-child(2),
    .buk-table td:nth-child(2) {
        display: none;
    }
}

/*-- keyframes --*/
@keyframes fadeIn{
    from{
        opacity:0;
        transform:translateY(-5px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}
@keyframes buk-fade-in{
    from{
        opacity:0;
        transform:translateY(-10px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}
@keyframes buk-spinner{
    to{
        transform:rotate(360deg);
    }
}
@keyframes buk-modal-fadein{
    from{
        opacity:0;
        transform:translateY(-20px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}