/* AI Resume Optimizer Styles */

/* Form Styles */
.form-section {
    background-color: rgba(31, 41, 55, 0.5);
    border-radius: 0.5rem;
    padding: 1rem;
    border: 1px solid rgb(55, 65, 81);
}

.form-section-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #d1d5db;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #9ca3af;
    margin-bottom: 0.375rem;
}

.form-input {
    width: 100%;
    background-color: #111827;
    border: 1px solid rgb(55, 65, 81);
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: #f3f4f6;
    transition: all 0.15s ease;
}

.form-input::placeholder {
    color: #4b5563;
}

.form-input:focus {
    border-color: #6366f1;
    outline: none;
    box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.5);
}

.form-textarea {
    width: 100%;
    background-color: #111827;
    border: 1px solid rgb(55, 65, 81);
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: #f3f4f6;
    transition: all 0.15s ease;
    resize: none;
    min-height: 100px;
}

.form-textarea::placeholder {
    color: #4b5563;
}

.form-textarea:focus {
    border-color: #6366f1;
    outline: none;
    box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.5);
}

/* Resume Preview Styles */
.resume-preview {
    background-color: #ffffff;
    color: #111827;
    aspect-ratio: 1/1.414;
}

.resume-header {
    border-bottom: 2px solid #1f2937;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.resume-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
}

.resume-title {
    font-size: 1.125rem;
    color: #4b5563;
    margin-top: 0.25rem;
}

.resume-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: #4b5563;
}

.resume-section {
    margin-bottom: 1.25rem;
}

.resume-section-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #111827;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #d1d5db;
    padding-bottom: 0.25rem;
    margin-bottom: 0.75rem;
}

.resume-item {
    margin-bottom: 1rem;
}

.resume-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.resume-item-title {
    font-weight: 600;
    color: #111827;
}

.resume-item-subtitle {
    color: #4b5563;
}

.resume-item-date {
    font-size: 0.875rem;
    color: #6b7280;
    text-align: right;
}

.resume-item-description {
    font-size: 0.875rem;
    color: #374151;
    margin-top: 0.5rem;
}

/* Skills */
.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    padding: 0.25rem 0.75rem;
    background-color: #f3f4f6;
    color: #374151;
    font-size: 0.875rem;
    border-radius: 9999px;
}

/* Button Styles */
.btn-add {
    width: 100%;
    padding: 0.5rem;
    border: 2px dashed rgb(55, 65, 81);
    border-radius: 0.5rem;
    color: #6b7280;
    background: transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-add:hover {
    border-color: #6366f1;
    color: #818cf8;
}

.btn-delete {
    color: #f87171;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.15s ease;
}

.btn-delete:hover {
    color: #fca5a5;
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background-color: #1f2937;
}

::-webkit-scrollbar-thumb {
    background-color: #4b5563;
    border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #6b7280;
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #6366f1;
    border-top-color: transparent;
    border-radius: 9999px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* AI Panel */
.ai-panel-open {
    transform: translateX(0) !important;
}

.suggestion-card {
    padding: 1rem;
    background: linear-gradient(to right, rgba(168, 85, 247, 0.1), rgba(99, 102, 241, 0.1));
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 0.5rem;
}

.suggestion-title {
    font-weight: 600;
    color: #c084fc;
    margin-bottom: 0.5rem;
}

.suggestion-content {
    font-size: 0.875rem;
    color: #d1d5db;
}

.apply-btn {
    margin-top: 0.75rem;
    padding: 0.375rem 0.75rem;
    background-color: rgba(168, 85, 247, 0.2);
    color: #c084fc;
    font-size: 0.875rem;
    border-radius: 0.25rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.apply-btn:hover {
    background-color: rgba(168, 85, 247, 0.3);
}

/* Print Styles */
@media print {
    nav, .no-print {
        display: none !important;
    }
    
    #resumePreview {
        width: 210mm;
        min-height: 297mm;
        margin: 0;
        padding: 20mm;
    }
}

/* 职位类型按钮 */
.job-type-btn {
    padding: 0.25rem 0.75rem;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    font-size: 0.75rem;
    color: #d1d5db;
    cursor: pointer;
    transition: all 0.2s;
}

.job-type-btn:hover {
    background-color: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.4);
    color: #a5b4fc;
}

/* 视角切换按钮 */
.view-btn {
    padding: 0.375rem 0.75rem;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    font-size: 0.75rem;
    color: #d1d5db;
    cursor: pointer;
    transition: all 0.2s;
}

.view-btn:hover {
    background-color: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.4);
    color: #a5b4fc;
}

.view-btn.active {
    background-color: rgba(99, 102, 241, 0.3);
    border-color: rgba(99, 102, 241, 0.5);
    color: #a5b4fc;
    font-weight: 500;
}

/* Optimization Level Selector Styles (借鉴求职方舟) */
.level-btn {
    padding: 0.75rem;
    background-color: rgba(31, 41, 55, 0.8);
    border: 2px solid rgba(75, 85, 99, 0.5);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.level-btn:hover {
    background-color: rgba(55, 65, 81, 0.9);
    border-color: rgba(156, 163, 175, 0.6);
    transform: translateY(-2px);
}

.level-btn i {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.level-btn .level-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #d1d5db;
}

.level-btn .level-desc {
    font-size: 0.625rem;
    color: #9ca3af;
    text-align: center;
    line-height: 1.2;
}

/* Active states for different levels */
.level-btn.active-blue {
    background-color: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

.level-btn.active-blue i,
.level-btn.active-blue .level-name {
    color: #60a5fa;
}

.level-btn.active-purple {
    background-color: rgba(147, 51, 234, 0.2);
    border-color: rgba(147, 51, 234, 0.6);
    box-shadow: 0 0 15px rgba(147, 51, 234, 0.3);
}

.level-btn.active-purple i,
.level-btn.active-purple .level-name {
    color: #c084fc;
}

.level-btn.active-orange {
    background-color: rgba(249, 115, 22, 0.2);
    border-color: rgba(249, 115, 22, 0.6);
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.3);
}

.level-btn.active-orange i,
.level-btn.active-orange .level-name {
    color: #fb923c;
}
