/**
 * States CSS Module
 * 
 * Disabled, read-only, and state management styling for the Zoho Profile Creation Plugin.
 * This module handles all interactive states and visibility controls.
 */

/* Read-only form state styling */
.oeg-read-only input,
.oeg-read-only select,
.oeg-read-only textarea {
    background-color: #f8f9fa !important;
    border: 1px solid #e9ecef !important;
    color: #6c757d !important;
    cursor: not-allowed !important;
}

.oeg-read-only {
    opacity: 0.8;
}

.oeg-read-only .oracle-skills-tag {
    background-color: #e9ecef !important;
    color: #6c757d !important;
    cursor: default !important;
}

.oeg-read-only .oracle-skills-tag .remove-skill {
    display: none !important;
}

/* Hide disclaimer content for old candidates */
.oeg-container-disclaimer.old-candidate .oeg-disclaimer-container {
    display: none !important;
}

/* Disabled state styling */
.oeg-disabled {
    opacity: 0.6;
    pointer-events: none;
    background-color: #f8f9fa !important;
    position: relative;
}

.oeg-disabled::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 10;
    pointer-events: none;
}

/* Button disabled states */
#oeg-apply-button:disabled {
    background-color: #cccccc;
    color: #666666;
    cursor: not-allowed;
}

.oeg-button-primary:disabled {
    background-color: #cccccc !important;
    color: #666666 !important;
    cursor: not-allowed !important;
    opacity: 0.6;
}

.oeg-apply-button-disabled {
    background-color: #cccccc;
    color: #666666;
    cursor: not-allowed;
}

/* Button enabled states */
.oeg-apply-button-enabled {
    background-color: #204f70;
    cursor: pointer;
}

.oeg-apply-button-enabled:hover {
    background-color: #183d5a;
}

/* Button error state */
.oeg-apply-button-error {
    background-color: #dc3545;
    color: white;
    cursor: pointer;
}

/* Login/Signup button state */
#oeg-apply-button.oeg-apply-button-login {
    background-color: #007bff;
    color: white;
    cursor: pointer;
}

#oeg-apply-button.oeg-apply-button-login:hover {
    background-color: #0056b3;
}

/* Skills dropdown selected state */
.oeg-skill-option.selected {
    background-color: #e3f2fd;
    color: #1976d2;
    cursor: default;
}

.oeg-skill-option.selected:hover {
    background-color: #e3f2fd;
}

/* Skills no results state */
.oeg-no-results {
    color: #666;
    font-style: italic;
    cursor: default;
}

.oeg-no-results:hover {
    background-color: white;
}

/* Hover states for interactive elements */
#oeg-apply-button:hover:not(:disabled) {
    background-color: #183d5a;
}

#zoho-profile-creation-container button:hover {
    background-color: #183d5a;
}

.oeg-button-secondary:hover {
    background-color: #254622 !important;
}

.oeg-button-primary:hover:not(:disabled) {
    background-color: #183d5a;
}

.oeg-view-resume-button:hover {
    background-color: #5a6268;
}

#zoho-profile-creation-container .oeg-use-previous-button:hover {
    background-color: #183d5a;
}

.oeg-file-upload-container .choose-file-button:hover {
    background-color: #254622;
}

.oeg-file-upload-container .upload-resume-button:hover {
    background-color: #183d5a !important;
}

.oeg-skill-tag:hover {
    background-color: #183d5a;
}

.oeg-skill-remove:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.oeg-skill-option:hover {
    background-color: #f8f9fa;
}

.oeg-resume-formatter-link:hover {
    color: #183d5a;
    border-bottom-color: #183d5a;
}

/* Focus states for form elements */
.oeg-skills-search:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

#city-input:focus,
#linkedin-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

#first-name-input:focus,
#last-name-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

#country-code-input:focus,
#phone-number-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}