/* AICVs Resume Scanner Styles */

:root{
    --skin-color: #34bab1;
    --skin-color-hover: #2b9b93;
    --skin-secondary-color: #e3f7f5;
}


.text-left {
    text-align: left !important;
}
.text-center {
    text-align: center !important;
}
.text-right {
    text-align: right !important;
}
.hidden{
    display: none;
}

.aicvs-container {
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #000;
    position: relative;
    overflow: hidden;
}
.aicvs-container > * {
    position: relative;
    z-index: 2;
}

.aicvs-header {
    text-align: center;
    margin-bottom: 40px;
}

.aicvs-brand {
    font-size: 14px;
    font-weight: 600;
    color: var(--skin-color);
    letter-spacing: 2px;
    margin-bottom: 20px;
    background: var(--skin-secondary-color);
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
}

.aicvs-title {
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 0 0;
    line-height: 1.2;
}

.aicvs-description {
    font-size: 18px;
    margin: 0 0 40px 0;
    line-height: 1.6;
}

.aicvs-form-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid #ddd;
    margin-bottom: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.aicvs-job-description {
    margin-bottom: 30px;
}

.aicvs-job-description label {
    display: block;
    font-weight: 600;
    color: #2D3748;
    margin-bottom: 8px;
    font-size: 16px;
}

.aicvs-job-description textarea {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    border: 2px solid #E2E8F0;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.aicvs-job-description textarea:focus {
    outline: none;
    border-color: var(--skin-color);
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.1);
}

.aicvs-upload-area {
    border: 3px dashed #CBD5E0;
    border-radius: 15px;
    padding: 60px 20px;
    text-align: center;
    background: #F7FAFC;
    transition: all 0.3s ease;
    cursor: pointer;
}

.aicvs-upload-area:hover,
.aicvs-upload-area.dragover {
    border-color: var(--skin-color);
    background: var(--skin-secondary-hover);
    transform: translateY(-2px);
}

.aicvs-upload-content h3 {
    font-size: 20px;
    color: #2D3748;
    margin: 20px 0 10px 0;
    font-weight: 600;
}

.aicvs-upload-content p {
    color: #718096;
    margin: 0 0 30px 0;
    font-size: 14px;
}

.aicvs-upload-icon {
    color: #A0AEC0;
    margin-bottom: 20px;
}

.aicvs-upload-btn {
    background: var(--skin-color);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(78, 205, 196, 0.3);
}

.aicvs-upload-btn:hover {
    background: var(--skin-color-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(78, 205, 196, 0.4);
}

.aicvs-privacy {
    margin-top: 20px;
    color: #718096;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.aicvs-doc-uploaded .aicvs-upload-icon{
    margin: 0;
}
.aicvs-doc-uploaded,
.aicvs-data-notice {
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    text-align: center;
}

.aicvs-doc-uploaded,
.aicvs-data-notice.enabled {
    background: #E6FFFA;
    border: 1px solid var(--skin-color);
    color: #2D3748;
}

.aicvs-data-notice.disabled {
    background: #FFF5F5;
    border: 1px solid #F56565;
    color: #2D3748;
}

.aicvs-data-text {
    margin: 0;
    font-weight: 500;
}
.aicvs-upload-content p.aicvs-data-text {
    margin: 0;
}

/* Upload State Management */
.aicvs-upload-state-initial,
.aicvs-upload-state-uploaded {
    transition: opacity 0.3s ease;
}

.aicvs-upload-state-uploaded {
    display: none;
}

.aicvs-upload-state-uploaded .aicvs-upload-title {
    color: var(--skin-color);
}

.aicvs-file-name {
    color: #2D3748;
    font-weight: 600;
}

.aicvs-file-size {
    color: #718096;
    font-weight: normal;
}

/* Steps Progress Container */
.aicvs-steps-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.aicvs-steps-container::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 25px;
    right: 25px;
    height: 2px;
    background: #E2E8F0;
    z-index: 1;
}

.aicvs-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    position: relative;
    z-index: 2;
}

.aicvs-step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #E2E8F0;
    color: #A0AEC0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    border: 3px solid #E2E8F0;
}

.aicvs-step.active .aicvs-step-number {
    background: var(--skin-color);
    color: white;
    border-color: var(--skin-color);
}

.aicvs-step.completed .aicvs-step-number {
    background: var(--skin-color);
    color: white;
    border-color: var(--skin-color);
}

.aicvs-step-content h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 600;
    color: #2D3748;
    transition: color 0.3s ease;
}

.aicvs-step-content p {
    margin: 0;
    font-size: 14px;
    color: #718096;
    line-height: 1.4;
}

.aicvs-step.active .aicvs-step-content h4 {
    color: var(--skin-color);
}

.aicvs-step-status {
    display: none;
}

.aicvs-loading {
    text-align: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.aicvs-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #E2E8F0;
    border-top: 4px solid var(--skin-color);
    border-radius: 50%;
    animation: aicvs-spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes aicvs-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.aicvs-loading p {
    color: #4A5568;
    font-weight: 600;
    margin: 0;
}

.aicvs-results {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.aicvs-results-content {
    white-space: pre-wrap;
    line-height: 1.7;
    color: #2D3748;
    font-size: 16px;
}

.aicvs-results-content h1,
.aicvs-results-content h2,
.aicvs-results-content h3 {
    color: #1A202C;
    margin-top: 30px;
    margin-bottom: 15px;
}

.aicvs-results-content ul,
.aicvs-results-content ol {
    margin: 15px 0;
    padding-left: 20px;
}

.aicvs-results-content li {
    margin-bottom: 8px;
}

.aicvs-new-analysis,
.aicvs-try-again {
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.aicvs-new-analysis:hover,
.aicvs-try-again:hover {
    background: var(--skin-color-hover);
    transform: translateY(-1px);
}

.aicvs-error {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.aicvs-error-content {
    color: #E53E3E;
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 16px;
}

/* Experience Level Selection Styles */
.aicvs-experience-level {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.aicvs-level-header {
    text-align: center;
    margin-bottom: 40px;
}

.aicvs-level-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #2D3748;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.aicvs-level-header p {
    font-size: 18px;
    color: #718096;
    margin: 0;
    line-height: 1.6;
}

.aicvs-level-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.aicvs-level-option {
    display: flex;
    align-items: center;
    padding: 24px;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    background: #FAFAFA;
    transition: all 0.3s ease;
    cursor: pointer;
}

.aicvs-level-option:hover {
    border-color: var(--skin-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(78, 205, 196, 0.15);
}

.aicvs-level-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: var(--skin-secondary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--skin-color);
    margin-right: 20px;
}

.aicvs-level-content {
    flex: 1;
}

.aicvs-level-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: #2D3748;
    margin: 0 0 8px 0;
}

.aicvs-level-content p {
    font-size: 16px;
    color: #718096;
    margin: 0;
    line-height: 1.5;
}

.aicvs-choose-btn {
    background: var(--skin-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.aicvs-choose-btn:hover {
    background: var(--skin-color-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(78, 205, 196, 0.3);
}

/* Enhanced Results Styles */
.aicvs-results {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.aicvs-results-header {
    background: linear-gradient(135deg, var(--skin-color) 0%, var(--skin-color-hover) 100%);
    color: white;
    padding: 40px;
    text-align: center;
    border-radius: 15px;
    position: relative;
}

.aicvs-results-header h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: #fff;
}

.aicvs-overall-score {
    display: flex;
    justify-content: center;
}

.aicvs-score-circle {
    width: 120px;
    height: 120px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.aicvs-score-number {
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
}

.aicvs-score-label {
    font-size: 9px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.aicvs-results-content {
    padding: 40px;
}

.aicvs-analysis-sections {
    display: grid;
    gap: 30px;
}

.aicvs-analysis-section {
    background: #F8F9FA;
    padding: 25px;
    border-left: 4px solid var(--skin-color);
}
.aicvs-analysis-section ul, .aicvs-analysis-section ol {
    margin: 0;
}
.aicvs-analysis-section h3 {
    color: #2D3748;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.aicvs-analysis-section h3::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--skin-color);
    border-radius: 50%;
}

.aicvs-analysis-section ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.aicvs-analysis-section li {
    padding: 8px 0;
    border-bottom: 1px solid #E2E8F0;
    position: relative;
    padding-left: 20px;
}

.aicvs-analysis-section li:last-child {
    border-bottom: none;
}

.aicvs-analysis-section li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--skin-color);
    font-weight: bold;
}

.aicvs-weakness li::before {
    content: '⚠';
    color: #F56565;
}

.aicvs-suggestion li::before {
    content: '💡';
}

.aicvs-results-footer {
    padding: 30px 40px;
    background: #F8F9FA;
    text-align: center;
    border-top: 1px solid #E2E8F0;
}

.aicvs-new-analysis {
    background: var(--skin-color);
    color: white !important;
    border: none;
    padding: 15px 40px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(78, 205, 196, 0.3);
}

.aicvs-new-analysis:hover {
    background: var(--skin-color-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(78, 205, 196, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .aicvs-container {
        margin: 20px;
        padding: 30px 15px;
    }
    
    .aicvs-title {
        font-size: 32px;
        padding: 15px;
    }
    
    .aicvs-description {
        font-size: 16px;
        padding: 15px;
    }
    
    .aicvs-form-container,
    .aicvs-results,
    .aicvs-experience-level {
        padding: 25px;
    }
    
    .aicvs-upload-area {
        padding: 40px 15px;
    }
    
    .aicvs-upload-content h3 {
        font-size: 18px;
    }
    
    .aicvs-upload-btn {
        padding: 12px 30px;
        font-size: 14px;
    }
    
    .aicvs-level-header h2 {
        font-size: 24px;
    }
    
    .aicvs-level-header p {
        font-size: 16px;
    }
    
    .aicvs-level-option {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .aicvs-level-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .aicvs-score-circle {
        width: 100px;
        height: 100px;
    }
    
    .aicvs-score-number {
        font-size: 28px;
    }
    
    .aicvs-results-header {
        padding: 25px;
    }
    
    .aicvs-results-content {
        padding: 25px;
    }
    
    .aicvs-steps-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .aicvs-steps-container::before {
        display: none;
    }
    
    .aicvs-step {
        flex-direction: row;
        text-align: left;
        gap: 15px;
    }
    
    .aicvs-step-number {
        width: 40px;
        height: 40px;
        font-size: 16px;
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .aicvs-step-content {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .aicvs-title {
        font-size: 24px;
    }
    
    .aicvs-description {
        font-size: 14px;
    }
    
    .aicvs-upload-area {
        padding: 30px 10px;
    }
    
    .aicvs-upload-content h3 {
        font-size: 16px;
    }
}

/* Login Modal Styles */
.aicvs-login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aicvs-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}


@keyframes aicvs-modal-enter {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.aicvs-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 30px;
    border-bottom: 1px solid #E2E8F0;
    background: #1a1a1a;
}

.aicvs-modal-header h2 {
    margin: 0;
    font-size: 20px;
    color: #ffffff;
    font-weight: 600;
}

.aicvs-modal-close {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.2s;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aicvs-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.aicvs-modal-body {
    padding: 35px 40px 40px;
}

.aicvs-modal-description {
    margin: 0 0 30px;
    color: #718096;
    text-align: center;
    line-height: 1.6;
    font-size: 15px;
}

/* Auth Tabs */
.aicvs-auth-tabs {
    display: flex;
    margin-bottom: 30px;
    background: #F7FAFC;
    border-radius: 10px;
    padding: 4px;
    position: relative;
}

.aicvs-auth-tab {
    flex: 1;
    padding: 12px 20px;
    background: none;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    color: #718096;
    position: relative;
    z-index: 2;
}

.aicvs-auth-tab.active {
    background: white;
    color: var(--skin-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

/* Form Styles */
.aicvs-form-group {
    margin-bottom: 18px;
}

.aicvs-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #2D3748;
    font-size: 13px;
}

.aicvs-form-group .required {
    color: #E53E3E;
}

.aicvs-form-group input[type="text"],
.aicvs-form-group input[type="email"],
.aicvs-form-group input[type="password"] {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #E2E8F0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.aicvs-form-group input:focus {
    outline: none;
    border-color: var(--skin-color);
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.1);
}

.aicvs-form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.aicvs-form-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
}

.aicvs-form-checkbox input {
    margin-right: 8px;
    width: auto !important;
}

.aicvs-submit-btn {
    width: 100%;
    padding: 11px 20px;
    background: var(--skin-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
    margin-bottom: 15px;
}

.aicvs-submit-btn:hover {
    background: var(--skin-color-hover);
    transform: translateY(-1px);
}

.aicvs-form-links {
    text-align: center;
}

.aicvs-form-links a {
    color: var(--skin-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.aicvs-form-links a:hover {
    text-decoration: underline;
}

/* Body class when modal is open */
body.aicvs-modal-open {
    overflow: hidden;
}

/* Responsive modal */
@media (max-width: 768px) {
    .aicvs-modal-content {
        width: 95%;
        margin: 10px;
        max-height: 95vh;
    }
    
    .aicvs-modal-header {
        padding: 20px;
    }
    
    .aicvs-modal-body {
        padding: 25px 20px 25px;
    }
    
    .aicvs-modal-header h2 {
        font-size: 18px;
    }
    
    .aicvs-form-group input[type="text"],
    .aicvs-form-group input[type="email"],
    .aicvs-form-group input[type="password"] {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

@media (max-width: 480px) {
    .aicvs-auth-tab {
        padding: 10px 15px;
        font-size: 14px;
    }
}

/* Pricing Modal Styles */
.aicvs-pricing-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aicvs-modal-content.aicvs-pricing-modal-content {
    max-width: 1200px;
    width: 95%;
    max-height: 95vh;
}

.aicvs-no-credits-message {
    text-align: center;
    padding: 20px 0 30px;
}

.aicvs-credits-icon {
    margin: 0 auto 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #EF4444;
}

.aicvs-no-credits-message h3 {
    margin: 0 0 15px;
    font-size: 24px;
    color: #2D3748;
    font-weight: 600;
}

.aicvs-no-credits-message p {
    margin: 0;
    color: #718096;
    line-height: 1.6;
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.aicvs-pricing-plans-container {
    margin-top: 30px;
}

/* Override some pricing plan styles within modal */
.aicvs-pricing-modal .aicvs-pricing-plans-container .ppfa-column {
    margin-bottom: 20px;
}

.aicvs-pricing-modal .ppfa-pricing-plan {
    margin-bottom: 0;
}

/* Responsive pricing modal */
@media (max-width: 1024px) {
    .aicvs-pricing-modal-content {
        width: 95%;
        margin: 20px;
    }
}

@media (max-width: 768px) {
    .aicvs-pricing-modal-content {
        width: 98%;
        margin: 10px;
    }
    
    .aicvs-no-credits-message h3 {
        font-size: 20px;
    }
    
    .aicvs-no-credits-message p {
        font-size: 14px;
    }
    
    .aicvs-credits-icon {
        width: 50px;
        height: 50px;
    }
    
    .aicvs-credits-icon svg {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 480px) {
    .aicvs-pricing-modal-content {
        width: 100%;
        margin: 0;
        border-radius: 0;
        max-height: 100vh;
    }
    
    .aicvs-no-credits-message {
        padding: 15px 0 20px;
    }
    
    .aicvs-pricing-plans-container {
        margin-top: 20px;
    }
}
