/* MEDirect CV Converter Styles */

:root {
    --medirect-navy: #1a1a2e;
    --medirect-navy-light: #2a2a3e;
    --medirect-cyan: #00ffff;
    --medirect-white: #ffffff;
    --medirect-gray: #cccccc;
    --medirect-dark-gray: #3a3a4e;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--medirect-navy) 0%, var(--medirect-navy-light) 100%);
    color: var(--medirect-white);
    min-height: 100vh;
}

.main-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.app-header {
    background: var(--medirect-navy);
    border-bottom: 3px solid var(--medirect-cyan);
    padding: 2rem 0;
    box-shadow: 0 4px 20px rgba(0, 255, 255, 0.1);
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    font-size: 3rem;
    color: var(--medirect-cyan);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.app-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--medirect-cyan);
    margin: 0;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.app-subtitle {
    font-size: 1.2rem;
    color: var(--medirect-white);
    background: var(--medirect-cyan);
    color: var(--medirect-navy);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-weight: bold;
}

.header-info {
    text-align: right;
    color: var(--medirect-white);
}

.header-info p {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--medirect-cyan);
}

.header-info small {
    color: var(--medirect-gray);
}

/* Main Content */
.app-main {
    flex: 1;
    padding: 3rem 0;
}

/* Step Cards */
.step-card {
    background: var(--medirect-navy-light);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--medirect-dark-gray);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border-left: 4px solid var(--medirect-cyan);
    transition: all 0.3s ease;
}

.step-card:hover {
    box-shadow: 0 12px 40px rgba(0, 255, 255, 0.1);
    transform: translateY(-2px);
}

.step-header {
    margin-bottom: 2rem;
}

.step-header h3 {
    color: var(--medirect-cyan);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.step-header h3 i {
    font-size: 1.5rem;
}

.step-header p {
    color: var(--medirect-gray);
    font-size: 1.1rem;
}

/* Upload Areas */
.upload-area {
    border: 3px dashed var(--medirect-cyan);
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(0, 255, 255, 0.02);
}

.upload-area:hover {
    background: rgba(0, 255, 255, 0.05);
    border-color: var(--medirect-white);
    transform: scale(1.02);
}

.upload-area.dragover {
    background: rgba(0, 255, 255, 0.1);
    border-color: var(--medirect-white);
    transform: scale(1.02);
}

.upload-content {
    pointer-events: none;
}

.upload-icon {
    font-size: 4rem;
    color: var(--medirect-cyan);
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.upload-area h4 {
    color: var(--medirect-white);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.upload-area p {
    color: var(--medirect-gray);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.upload-link {
    color: var(--medirect-cyan);
    text-decoration: underline;
    font-weight: bold;
}

.upload-area small {
    color: var(--medirect-gray);
    font-size: 0.9rem;
}

/* Upload Status */
.upload-status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    display: none;
}

.upload-status.success {
    background: rgba(40, 167, 69, 0.2);
    border: 1px solid #28a745;
    color: #28a745;
    display: block;
}

.upload-status.error {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid #dc3545;
    color: #dc3545;
    display: block;
}

.upload-status.processing {
    background: rgba(0, 255, 255, 0.2);
    border: 1px solid var(--medirect-cyan);
    color: var(--medirect-cyan);
    display: block;
}

/* CV Editor */
.cv-editor {
    background: #ffffff;
    border-radius: 8px;
    padding: 2rem;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.editor-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.editor-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.editor-section h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.form-label {
    color: #00bcd4 !important;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

/* Ensure CV editor labels are visible */
.cv-editor .form-label {
    color: #00bcd4 !important;
}

.form-control, .form-select {
    background: #ffffff;
    border: 1px solid #dee2e6;
    color: #2c3e50;
    border-radius: 6px;
    padding: 0.75rem;
}

.form-control:focus, .form-select:focus {
    background: #ffffff;
    border-color: #00bcd4;
    color: #2c3e50;
    box-shadow: 0 0 0 0.2rem rgba(0, 188, 212, 0.25);
}

.form-control::placeholder {
    color: #6c757d;
}

/* Buttons */
.btn {
    border-radius: 6px;
    padding: 0.75rem 1.5rem;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--medirect-cyan);
    color: var(--medirect-navy);
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.3);
}

.btn-primary:hover {
    background: var(--medirect-white);
    color: var(--medirect-navy);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--medirect-dark-gray);
    color: var(--medirect-white);
    border: 1px solid var(--medirect-gray);
}

.btn-secondary:hover {
    background: var(--medirect-gray);
    color: var(--medirect-navy);
    transform: translateY(-2px);
}

.btn-success {
    background: #28a745;
    color: var(--medirect-white);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-success:hover {
    background: #218838;
    transform: translateY(-2px);
}

.btn-outline-primary {
    background: transparent;
    color: var(--medirect-cyan);
    border: 2px solid var(--medirect-cyan);
}

.btn-outline-primary:hover {
    background: var(--medirect-cyan);
    color: var(--medirect-navy);
    transform: translateY(-2px);
}

/* Step Actions */
.step-actions {
    margin-top: 2rem;
    text-align: center;
}

.step-actions .btn {
    margin: 0 0.5rem;
}

/* Preview Section */
.preview-section {
    text-align: center;
}

.preview-actions {
    margin-bottom: 2rem;
}

.preview-frame {
    background: var(--medirect-white);
    border-radius: 8px;
    min-height: 600px;
    overflow: hidden;
    border: 1px solid var(--medirect-dark-gray);
}

.preview-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 46, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-content {
    text-align: center;
    background: var(--medirect-navy-light);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid var(--medirect-cyan);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--medirect-dark-gray);
    border-top: 4px solid var(--medirect-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

.loading-content h4 {
    color: var(--medirect-cyan);
    margin-bottom: 0.5rem;
}

.loading-content p {
    color: var(--medirect-gray);
}

/* Modal Styles */
.modal-content {
    background: var(--medirect-navy-light);
    border: 1px solid var(--medirect-dark-gray);
    color: var(--medirect-white);
}

.modal-header {
    border-bottom: 1px solid var(--medirect-dark-gray);
}

.modal-title {
    color: var(--medirect-cyan);
}

.modal-footer {
    border-top: 1px solid var(--medirect-dark-gray);
}

.btn-close {
    filter: invert(1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .app-header {
        padding: 1rem 0;
    }
    
    .logo-section {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .app-title {
        font-size: 2rem;
    }
    
    .header-info {
        text-align: center;
        margin-top: 1rem;
    }
    
    .step-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .upload-area {
        padding: 2rem 1rem;
    }
    
    .upload-icon {
        font-size: 3rem;
    }
    
    .step-actions .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
}

/* Dynamic List Items */
.dynamic-list {
    margin-bottom: 1rem;
}

.list-item {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.list-item-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 1rem;
}

.list-item-title {
    color: #2c3e50;
    font-weight: bold;
}

/* Add and Remove Button Styling - High Specificity */
button.remove-item, .remove-item {
    background: #00bcd4 !important;
    color: white !important;
    border: none !important;
    border-radius: 4px;
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

button.remove-item:hover, .remove-item:hover {
    background: #0891b2 !important;
    color: white !important;
    transform: translateY(-1px);
}

button.add-item, .add-item {
    background: #00bcd4 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px;
    padding: 0.75rem 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

button.add-item:hover, .add-item:hover {
    background: #0891b2 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}

/* File upload styling improvements */
.file-info {
    background: rgba(0, 188, 212, 0.1);
    border: 1px solid #00bcd4;
    border-radius: 6px;
    padding: 1rem;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.file-info i {
    font-size: 2rem;
    color: #00bcd4;
}

.file-details h5 {
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.file-details p {
    color: #6c757d;
    margin: 0;
    font-size: 0.9rem;
}
