/* assets/css/style.css - COMPLETE UPDATED VERSION */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

/* Auth Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-box {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

.auth-box h1 {
    text-align: center;
    margin-bottom: 10px;
    color: #2c3e50;
}

.auth-subtitle {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 30px;
}

/* Main Container - REDUCED WIDTH */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Headers */
h1 {
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
}

h2 {
    color: #34495e;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ecf0f1;
}

/* Forms */
.form-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 25px;
    border-left: 4px solid #3498db;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Dynamic Form Entries */
.education-entry,
.experience-entry,
.referee-entry,
.working-experience-entry {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    margin-bottom: 15px;
    position: relative;
}

.btn-remove {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
}

.btn-remove:hover {
    background: #c0392b;
}

/* Buttons */
.btn-primary {
    background: #3498db;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.btn-secondary {
    background: #95a5a6;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

/* Alerts */
.alert {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 4px solid;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border-color: #ffeaa7;
}

/* Dashboard Styles */
.dashboard-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    text-align: center;
}

.dashboard-header h1 {
    color: white;
    margin-bottom: 10px;
}

.status-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    margin: 10px 5px;
}

.status-pending { background: #fff3cd; color: #856404; }
.status-accepted { background: #d1edff; color: #0c5460; }
.status-on_hold { background: #d1ecf1; color: #0c5460; }
.status-rejected { background: #f8d7da; color: #721c24; }
.status-terminated { background: #e2e3e5; color: #383d41; }

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 25px 0;
}

/* Form Help Text */
.form-help {
    font-size: 14px;
    color: #6c757d;
    margin-top: 5px;
    font-style: italic;
}

/* Checkbox Styling */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    font-weight: normal;
    cursor: pointer;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.checkbox-label input {
    width: auto;
    margin-right: 10px;
    margin-top: 3px;
}

/* Required Field Indicator */
.required::after {
    content: " *";
    color: #e74c3c;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        margin: 10px;
        padding: 15px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .auth-box {
        padding: 25px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
    }
    
    .container {
        box-shadow: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}

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

.education-entry,
.experience-entry,
.referee-entry,
.working-experience-entry {
    animation: fadeIn 0.3s ease-in-out;
}

/* Position Select Styling */
.position-select {
    border: 2px solid #3498db;
    background: #f8f9fa;
}

.position-select option:disabled {
    color: #e74c3c;
    font-style: italic;
}

/* File Upload Styling */
.file-upload {
    border: 2px dashed #bdc3c7;
    padding: 20px;
    text-align: center;
    border-radius: 6px;
    transition: all 0.3s;
}

.file-upload:hover {
    border-color: #3498db;
    background: #f8f9fa;
}

.file-upload input {
    border: none;
    background: transparent;
}

/* Navigation - REDUCED WIDTH */
.nav-bar {
    background: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.nav-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.nav-logo {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: #7f8c8d;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #3498db;
}

/* ===== NEW EMPLOYMENT SECTIONS STYLING ===== */

/* Profile Photo Upload */
.profile-upload {
    text-align: center;
    padding: 25px;
    border: 2px dashed #bdc3c7;
    border-radius: 8px;
    margin-bottom: 20px;
    background: #fafafa;
    transition: all 0.3s;
}

.profile-upload:hover {
    border-color: #3498db;
    background: #f0f8ff;
}

.profile-preview {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #3498db;
    margin: 15px auto;
    display: block;
}

.upload-btn {
    background: #3498db;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: inline-block;
    margin-top: 10px;
    transition: all 0.3s;
}

.upload-btn:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

/* Current Employment Section */
.current-employment {
    background: #f0f8ff;
    border-left: 4px solid #3498db;
}

.current-job-badge {
    background: #27ae60;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 10px;
}

/* Last Employment Section */
.last-employment {
    background: #fffaf0;
    border-left: 4px solid #f39c12;
}

/* Working Experiences Section */
.working-experience-entry {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    margin-bottom: 15px;
    transition: all 0.3s;
}

.working-experience-entry:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.employment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f1f1;
}

/* Job Requirements Display */
.job-requirements {
    background: #e8f4fd;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    border-left: 4px solid #3498db;
}

.requirements-list {
    margin: 10px 0;
    padding-left: 20px;
}

.requirements-list li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.requirements-toggle {
    background: none;
    border: none;
    color: #3498db;
    cursor: pointer;
    font-size: 14px;
    margin-left: 10px;
    text-decoration: underline;
}

.requirements-toggle:hover {
    color: #2980b9;
}

/* Cover Letter Section */
.cover-letter-section {
    background: #fffaf0;
    border-left: 4px solid #f39c12;
}

.cover-letter-section textarea {
    min-height: 150px;
    resize: vertical;
}

/* File Upload Wrapper */
.file-upload-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.file-upload-wrapper input[type=file] {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

/* Countdown Timer (for dashboard) */
.countdown-timer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin: 15px 0;
}

.countdown-numbers {
    font-size: 24px;
    font-weight: bold;
    margin: 10px 0;
}

.countdown-label {
    font-size: 12px;
    opacity: 0.9;
}

/* Main Container - FULL WIDTH with limited max-width */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-top: 20px;
    margin-bottom: 20px;
    width: 95%; /* ADD THIS - makes it almost full width */
}

/* Navigation - FULL WIDTH with limited max-width */
.nav-bar {
    background: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    width: 100%; /* ADD THIS */
}

.nav-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    width: 95%; /* ADD THIS */
}

/* For very large screens, add media query */
@media (min-width: 1400px) {
    .container {
        max-width: 900px; /* Slightly larger on very big screens */
    }
    
    .nav-content {
        max-width: 900px;
    }
}