/* Resume Scanner Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

/* Header */
.header {
    background: white;
    border-radius: 10px;
    padding: 20px 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.back-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.back-btn:hover {
    background: #5568d3;
    transform: translateX(-3px);
}

.page-title {
    font-size: 28px;
    color: #667eea;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Section Styles */
section {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

section h2 {
    color: #667eea;
    margin-bottom: 10px;
    font-size: 22px;
}

section h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 18px;
}

.section-description {
    color: #666;
    margin-bottom: 20px;
}

/* Position Selection Section */
.position-selection-section {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.position-input-group {
    margin-top: 1rem;
}

.position-select,
.custom-position-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.position-select:focus,
.custom-position-input:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.position-select {
    cursor: pointer;
}

.custom-position-input {
    margin-top: 10px;
}

.position-badge {
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
}

/* Upload Section */
.upload-zone {
    border: 3px dashed #667eea;
    border-radius: 10px;
    padding: 50px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    background: #f8f9fa;
}

.upload-zone:hover {
    border-color: #764ba2;
    background: #f0f0f0;
}

.upload-zone.drag-over {
    border-color: #764ba2;
    background: #f0f0ff;
    transform: scale(1.02);
}

.upload-icon {
    font-size: 60px;
    color: #667eea;
    margin-bottom: 20px;
}

.upload-text {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
}

.file-label {
    color: #667eea;
    text-decoration: underline;
    cursor: pointer;
}

.file-label:hover {
    color: #764ba2;
}

.upload-hint {
    font-size: 14px;
    color: #999;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
}

.file-icon {
    font-size: 40px;
    color: #667eea;
}

.file-details {
    flex: 1;
}

.file-name {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.file-size {
    font-size: 14px;
    color: #999;
}

.remove-file-btn {
    background: #ff4757;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.remove-file-btn:hover {
    background: #ee3742;
}

/* Clipboard Section */
.clipboard-container {
    position: relative;
}

#clipboardInput {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s;
}

#clipboardInput:focus {
    outline: none;
    border-color: #667eea;
}

.char-counter {
    text-align: right;
    margin-top: 5px;
    font-size: 14px;
    color: #999;
}

/* Action Buttons */
.action-section {
    display: flex;
    gap: 15px;
}

.btn {
    flex: 1;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* Results Section */
.results-section {
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Score Card */
.score-card {
    display: flex;
    align-items: center;
    gap: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.industry-badge {
    width: 100%;
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.industry-badge i {
    margin-right: 0.5rem;
}

.industry-badge strong {
    font-weight: 600;
}

.score-circle {
    position: relative;
    width: 150px;
    height: 150px;
}

.score-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.score-circle-bg {
    fill: none;
    stroke: rgba(255,255,255,0.2);
    stroke-width: 8;
}

.score-circle-progress {
    fill: none;
    stroke: white;
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s;
}

.score-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 36px;
    font-weight: bold;
}

.score-value small {
    font-size: 20px;
}

.score-text {
    flex: 1;
}

.score-text h3 {
    color: white;
    font-size: 24px;
    margin-bottom: 10px;
}

.score-text p {
    color: rgba(255,255,255,0.9);
    font-size: 16px;
}

/* Suggestions Container */
.suggestions-container h3 {
    margin-bottom: 20px;
}

.suggestion-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.suggestion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    transition: background 0.3s;
}

.suggestion-header:hover {
    background: #f8f9fa;
}

.suggestion-header h4 {
    margin: 0;
    color: #667eea;
    font-size: 16px;
}

.suggestion-header h4 i {
    margin-right: 10px;
}

.toggle-icon {
    color: #667eea;
    transition: transform 0.3s;
}

.suggestion-header.active .toggle-icon {
    transform: rotate(180deg);
}

.suggestion-content {
    display: none;
    padding: 0 20px 20px;
}

.suggestion-content.active {
    display: block;
    animation: slideDown 0.3s;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.suggestion-content ul {
    list-style: none;
    padding: 0;
}

.suggestion-content li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
    line-height: 1.6;
}

.suggestion-content li:last-child {
    border-bottom: none;
}

.suggestion-content li::before {
    content: "✓";
    color: #667eea;
    font-weight: bold;
    margin-right: 10px;
}

/* Scan History */
.history-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.history-card {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s;
    cursor: pointer;
}

.history-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.history-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.history-score {
    background: #667eea;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
}

.history-file-name {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.history-date {
    font-size: 14px;
    color: #999;
}

.history-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.history-actions button {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.view-btn {
    background: #667eea;
    color: white;
}

.view-btn:hover {
    background: #5568d3;
}

.delete-btn {
    background: #ff4757;
    color: white;
}

.delete-btn:hover {
    background: #ee3742;
}

.empty-state {
    text-align: center;
    color: #999;
    padding: 40px;
    font-style: italic;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
}

.toast {
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 300px;
    animation: slideInRight 0.3s;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-success {
    border-left: 4px solid #28a745;
}

.toast-error {
    border-left: 4px solid #dc3545;
}

.toast-warning {
    border-left: 4px solid #ffc107;
}

.toast-info {
    border-left: 4px solid #17a2b8;
}

.toast-icon {
    font-size: 20px;
}

.toast-message {
    flex: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .page-title {
        font-size: 24px;
    }
    
    .upload-zone {
        padding: 30px;
    }
    
    .upload-icon {
        font-size: 40px;
    }
    
    .score-card {
        flex-direction: column;
        text-align: center;
    }
    
    .score-circle {
        width: 120px;
        height: 120px;
    }
    
    .action-section {
        flex-direction: column;
    }
    
    .history-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .container {
        gap: 20px;
    }
    
    section {
        padding: 20px;
    }
    
    section h2 {
        font-size: 18px;
    }
    
    .upload-zone {
        padding: 20px;
    }
    
    .toast {
        min-width: 250px;
    }
}

