/* Future Job Page Styling */
body.future-job-page {
    min-height: 100vh;
    font-family: 'Tajawal', sans-serif;
    color: white;
    line-height: 1.6;
    padding-bottom: 2rem;
    position: relative;
}

body.future-job-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

/* Glass Container Effect */
.glass-container {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.5);
    transition: all 0.3s ease;
}

.glass-container:hover {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 40px 0 rgba(31, 38, 135, 0.6);
    transform: translateY(-5px);
}

/* Page Introduction */
.page-introduction {
    text-align: center;
    max-width: 800px;
    margin: 2rem auto;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

.page-introduction::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    animation: rotate 20s linear infinite;
    z-index: -1;
}

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

.page-introduction h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.page-introduction .intro-text {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
}

/* User Info Form */
.user-info-form {
    max-width: 500px;
    margin: 2rem auto 0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.15);
}

/* Selected Job Display */
.selected-job-display {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
}

.selected-job-display.visible {
    opacity: 1;
    transform: translateY(0);
}

.selected-job-display.hidden {
    display: none;
}

/* Job Header Styles */
.job-header {
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.profile-image {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #00b894, #00cec9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-image i {
    font-size: 2rem;
    color: white;
}

.profile-info h3 {
    margin: 0;
    color: white;
    font-size: 1.5rem;
}

.profile-info p {
    margin: 0.3rem 0 0;
    color: rgba(255, 255, 255, 0.8);
}

.job-stats {
    display: flex;
    gap: 2rem;
}

.stat {
    text-align: center;
    color: white;
}

.stat i {
    font-size: 1.5rem;
    color: #00b894;
    margin-bottom: 0.5rem;
}

.stat span {
    display: block;
    font-size: 1.2rem;
    font-weight: bold;
}

.stat small {
    color: rgba(255, 255, 255, 0.7);
}

/* Muzna Assistant Section */
.muzna-section {
    display: flex;
    padding: 1.5rem;
    margin: 1.5rem;
    border-radius: 15px;
    background: rgba(108, 92, 231, 0.2);
    align-items: center;
    gap: 1.5rem;
}

.muzna-avatar {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.muzna-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.muzna-message {
    flex-grow: 1;
}

.muzna-message h4 {
    margin: 0 0 0.5rem 0;
    color: #fff;
    font-size: 1.3rem;
}

.muzna-message p {
    margin: 0 0 1rem 0;
    color: #ffffff;
    line-height: 1.6;
    font-size: 1.1rem;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    padding: 0.5rem;
    background: rgba(108, 92, 231, 0.15);
    border-radius: 8px;
}

.play-message-btn {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.play-message-btn:hover {
    background: linear-gradient(135deg, #5d4de4, #8f84fd);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.play-message-btn i {
    font-size: 1rem;
}

.play-message-btn.speaking {
    background: linear-gradient(135deg, #e74c3c, #e17055);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(231, 76, 60, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0);
    }
}

/* Job Actions Container */
.job-actions-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
}

.job-actions-container .action-btn {
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.job-image-container:hover .job-overlay {
    transform: translateY(0);
}

.job-actions {
    display: flex;
    gap: 1rem;
}

.work-btn {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 15px;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.2);
}

.work-btn:hover {
    background: linear-gradient(45deg, #45a049, #4CAF50);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
}

.work-btn i {
    margin-left: 8px;
}

.action-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Job Details */
.job-details {
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    color: white;
}

.progress-section h4,
.achievements-section h4 {
    margin: 0 0 1rem 0;
    color: rgba(255, 255, 255, 0.9);
}

.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(to right, #00b894, #00cec9);
    width: 0;
    transition: width 0.5s ease;
}

.achievements-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.achievement-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.achievement-item i {
    color: #ffd700;
    font-size: 1.5rem;
}

.achievement-item p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.stat span {
    display: inline-block;
    animation: pulse 2s infinite;
}

.achievement-item {
    animation: slideIn 0.5s ease;
}

.achievement-item i {
    animation: pulse 1s infinite;
}

.progress-fill {
    background: linear-gradient(90deg, 
        #00b894,
        #00cec9,
        #00b894
    );
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: #fff;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
    font-family: 'Tajawal', sans-serif;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-group select option {
    background: #283593;
    color: #fff;
}

.generate-btn {
    background: linear-gradient(135deg, #00b894, #00cec9);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    width: 100%;
    transition: all 0.3s ease;
}

.generate-btn:hover {
    background: linear-gradient(135deg, #00cec9, #00b894);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 206, 201, 0.4);
}
.jobs-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.job-card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
}

.job-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.job-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 70%, rgba(0,0,0,0.8) 100%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.job-card:hover::before {
    opacity: 1;
}

.job-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

/* Uniform container styles */
.uniform-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.2) 100%);
    position: relative;
    overflow: hidden;
}

/* Job uniform image styling */
.job-uniform-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.job-card:hover .job-uniform-image {
    transform: scale(1.1);
}

/* Job label styles */
.job-label {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 15px;
    text-align: center;
    font-weight: bold;
    font-size: 1.1rem;
    z-index: 5;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.job-card:hover .job-label {
    transform: translateY(0);
}

/* Uniform styles are now directly applied to the container */
.suit-business, .suit-tech, .suit-doctor, .suit-lawyer, .suit-scientist {
    position: relative;
    width: 180px;
    height: 180px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 2;
}

.job-card:hover .suit-business,
.job-card:hover .suit-tech,
.job-card:hover .suit-doctor,
.job-card:hover .suit-lawyer,
.job-card:hover .suit-scientist {
    transform: scale(1.1);
}

.job-info {
    padding: 1.5rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.job-info h4 {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.job-description {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
    line-height: 1.4;
}

.work-btn {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-family: 'Tajawal', sans-serif;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.work-btn:hover {
    background: linear-gradient(45deg, #45a049, #4CAF50);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.work-btn i {
    font-size: 1.2rem;
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.95);
    color: white;
    padding: 1.2rem 2.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.notification.hidden {
    opacity: 0;
    transform: translate(-50%, -100%);
    pointer-events: none;
}

.notification i {
    color: #3a7bd5;
    font-size: 1.3rem;
}

.notification p {
    margin: 0;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-introduction {
        margin: 1.5rem;
        padding: 2rem;
    }

    .page-introduction h2 {
        font-size: 2rem;
    }

    .jobs-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
        padding: 0.5rem;
    }

    .job-info h4 {
        font-size: 1.2rem;
    }

    .work-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .notification {
        width: 90%;
        padding: 1rem 1.5rem;
    }
}

/* Student Section Styling */
.student-section {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
}

.student-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
}

.form-group input {
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 2px rgba(58, 123, 213, 0.5);
}

.save-student-info {
    padding: 1rem;
    border: none;
    border-radius: 8px;
    background: rgba(58, 123, 213, 0.8);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.save-student-info:hover {
    background: rgba(58, 123, 213, 1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.save-student-info i {
    font-size: 1.2rem;
}

.future-job-page {
    font-family: 'Tajawal', sans-serif;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

.future-job-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

/* Main container layout */
.job-simulator-container {
    max-width: 1200px;
    margin: 0 auto 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
}

/* Image preview section */
.job-preview-section {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image-preview-container {
    position: relative;
    width: 100%;
    height: 400px;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.placeholder-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 2rem;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path fill="rgba(255,255,255,0.1)" d="M65,22 v-4 h-30 v4 h-10 v60 h50 v-60 z M50,12 a9,9 0 1,0 0,18 9,9 0 1,0 0,-18 z M50,66 c-9.941,0 -18,-8.059 -18,-18 0,-5.52 2.49,-10.465 6.408,-13.784 a15.975,15.975 0 0,0 23.184,0 C65.51,37.535 68,42.48 68,48 c0,9.941 -8.059,18 -18,18 z"></path></svg>');
    background-repeat: no-repeat;
    background-position: center 40%;
    background-size: 100px;
}

.final-image-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
}

.final-image-container.active {
    display: block;
}

#finalImage {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

.processing-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    z-index: 5;
    display: none;
}

.processing-overlay.active {
    display: flex;
    animation: fadePulse 2s infinite;
}

@keyframes fadePulse {
    0%, 100% { background: rgba(0, 0, 0, 0.7); }
    50% { background: rgba(0, 0, 0, 0.8); }
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

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

.image-actions {
    display: flex;
    gap: 1rem;
}

.action-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(58, 123, 213, 0.8);
    color: white;
}

.action-btn:hover:not([disabled]) {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Job controls section */
.job-controls-section {
    padding: 2rem;
}

.upload-section {
    margin-bottom: 2rem;
}

.job-controls-section h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.upload-options {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.upload-btn, .camera-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.upload-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.camera-btn {
    background: rgba(76, 217, 100, 0.8);
    color: white;
}

.upload-btn:hover, .camera-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.camera-container {
    display: none;
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 75%;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 1rem;
}

.camera-container.active {
    display: block;
}

#cameraFeed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

#captureBtn {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 59, 48, 0.8);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

#closeCamera {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Jobs grid */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.job-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.job-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3a7bd5, #00d2ff);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.job-card:hover::before {
    transform: scaleX(1);
}

.job-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.job-image {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
    aspect-ratio: 16/9;
}

.job-card .job-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.job-card:hover .job-image img {
    transform: scale(1.05);
}

.job-card h4 {
    color: white;
    margin: 0;
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem;
}

.uniform-preview {
    margin-top: 2rem;
    padding: 2rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.preview-image {
    max-width: 100%;
    height: 400px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.name-badge {
    background: rgba(58, 123, 213, 0.9);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.2rem;
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Voice commands section */
.voice-commands {
    max-width: 1200px;
    margin: 0 auto 2rem;
    padding: 2rem;
}

/* Upload instructions */
.upload-instruction, .jobs-instruction {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-align: center;
}

/* Responsive design */
@media (max-width: 992px) {
    .job-simulator-container {
        grid-template-columns: 1fr;
    }
    
    .image-preview-container {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .jobs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .upload-options {
        flex-direction: column;
    }
    
    .image-preview-container {
        height: 300px;
    }
}

/* CSS-drawn suits for job simulator */
.suit-template {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 2;
}

/* Doctor suit - White coat */
.suit-doctor {
    background-color: transparent;
    background-image: 
        /* White coat collar */
        linear-gradient(to bottom, transparent 20%, #fff 20%, #fff 34%, transparent 34%),
        /* White coat body */
        linear-gradient(to right, transparent 30%, #f8f8f8 30%, #f8f8f8 70%, transparent 70%);
    background-position: center;
    background-size: 100% 100%;
}

.suit-doctor::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 34%;
    width: 10%;
    height: 30%;
    background-color: #f0f0f0;
    transform: translateX(-50%);
    border-right: 2px solid #ddd;
    z-index: -1;
}

.suit-doctor::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 25%;
    width: 25%;
    height: 10%;
    transform: translateX(-50%);
    background-color: #70a1ff;
    clip-path: polygon(0 100%, 50% 0, 100% 100%);
    z-index: -1;
}

/* Engineer suit - Hard hat and vest */
.suit-engineer {
    background-color: transparent;
    background-image: 
        /* Safety vest */
        linear-gradient(to bottom, transparent 30%, #ffbf00 30%, #ffbf00 60%, transparent 60%);
    background-position: center;
    background-size: 100% 100%;
}

.suit-engineer::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 15%;
    width: 40%;
    height: 15%;
    background-color: #ffbf00;
    transform: translateX(-50%);
    border-radius: 50% 50% 0 0;
    z-index: -1;
}

.suit-engineer::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 35%;
    width: 60%;
    height: 10%;
    transform: translateX(-50%);
    background: repeating-linear-gradient(
        45deg,
        #ffbf00,
        #ffbf00 10px,
        #ff8800 10px,
        #ff8800 20px
    );
    z-index: -1;
}

/* Business suit */
.suit-business {
    background-color: transparent;
    background-image: 
        /* Suit jacket */
        linear-gradient(to bottom, transparent 25%, #2c3e50 25%, #2c3e50 70%, transparent 70%),
        /* White shirt */
        linear-gradient(to right, transparent 42%, #fff 42%, #fff 58%, transparent 58%);
    background-position: center;
    background-size: 100% 100%;
}

.suit-business::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 40%;
    width: 16%;
    height: 30%;
    background-color: #fff;
    transform: translateX(-50%);
    z-index: -1;
}

.suit-business::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 45%;
    width: 10%;
    height: 20%;
    transform: translateX(-50%);
    background-color: #e74c3c;
    clip-path: polygon(50% 0, 0 100%, 100% 100%);
    z-index: 1;
}

/* Scientist lab coat */
.suit-scientist {
    background-color: transparent;
    background-image: 
        /* Lab coat */
        linear-gradient(to bottom, transparent 25%, #fff 25%, #fff 75%, transparent 75%);
    background-position: center;
    background-size: 100% 100%;
}

.suit-scientist::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 25%;
    width: 30%;
    height: 15%;
    background-color: #f8f8f8;
    transform: translateX(-50%);
    border-radius: 0 0 50% 50%;
    border-bottom: 3px solid #ddd;
    z-index: -1;
}

.suit-scientist::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 40%;
    width: 10%;
    height: 20%;
    transform: translateX(-50%);
    background-color: #7158e2;
    clip-path: polygon(50% 0, 0 100%, 100% 100%);
    z-index: 1;
}

/* Tech hoodie */
.suit-tech {
    background-color: transparent;
    background-image: 
        /* Hoodie */
        linear-gradient(to bottom, transparent 25%, #333 25%, #333 70%, transparent 70%);
    background-position: center;
    background-size: 100% 100%;
}

.suit-tech::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 25%;
    width: 50%;
    height: 10%;
    background-color: #444;
    border-radius: 0 0 40% 40%;
    transform: translateX(-50%);
    z-index: -1;
}

.suit-tech::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 38%;
    width: 30%;
    height: 20%;
    transform: translateX(-50%);
    background-color: #fff;
    clip-path: polygon(25% 0, 75% 0, 100% 100%, 0% 100%);
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><text x="50" y="50" font-size="40" text-anchor="middle" dominant-baseline="middle" fill="%23333">{ }</text></svg>');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

/* Teacher outfit */
.suit-teacher {
    background-color: transparent;
    background-image: 
        /* Cardigan */
        linear-gradient(to bottom, transparent 25%, #3498db 25%, #3498db 70%, transparent 70%);
    background-position: center;
    background-size: 100% 100%;
}

.suit-teacher::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 25%;
    width: 40%;
    height: 15%;
    background-color: #fff;
    transform: translateX(-50%);
    border-radius: 10px 10px 0 0;
    z-index: -1;
}

.suit-teacher::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 40%;
    width: 15%;
    height: 10%;
    transform: translateX(-50%);
    background-color: #e74c3c;
    border-radius: 5px;
    z-index: 1;
}

/* Face area for all suits */
.face-area {
    position: absolute;
    width: 35%;
    height: 25%;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50% 50% 40% 40% / 60% 60% 40% 40%;
    overflow: hidden;
    z-index: 3;
}

/* Face image styling */
.face-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* Canvas for composite image generation */
#compositeCanvas {
    display: none;
}

/* Enhanced final image display */
.final-image-container {
    position: relative;
}

/* Job badge */
.job-badge {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    z-index: 10;
}

/* Suit styles for different jobs */
.suit-business, .suit-tech, .suit-doctor, .suit-lawyer, .suit-scientist {
    position: relative;
    width: 180px;
    height: 180px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

/* Business suit */
.suit-business {
    background-color: transparent;
    background-image: 
        /* Suit jacket */
        linear-gradient(to bottom, transparent 25%, #1a237e 25%, #1a237e 70%, transparent 70%);
    background-position: center;
    background-size: 100% 100%;
}

.suit-business::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 25%;
    width: 40%;
    height: 15%;
    background-color: #fff;
    transform: translateX(-50%);
    clip-path: polygon(0 0, 100% 0, 90% 100%, 10% 100%);
    z-index: 1;
}

.suit-business::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 40%;
    width: 20%;
    height: 10%;
    transform: translateX(-50%);
    background-color: #ff9800;
    border-radius: 50%;
    z-index: 2;
}

/* Doctor coat */
.suit-doctor {
    background-color: transparent;
    background-image: 
        /* Lab coat */
        linear-gradient(to bottom, transparent 25%, #fff 25%, #fff 70%, transparent 70%);
    background-position: center;
    background-size: 100% 100%;
}

.suit-doctor::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 25%;
    width: 50%;
    height: 45%;
    background-color: #fff;
    transform: translateX(-50%);
    clip-path: polygon(40% 0, 60% 0, 100% 100%, 0% 100%);
    z-index: -1;
}

.suit-doctor::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 40%;
    width: 25%;
    height: 10%;
    transform: translateX(-50%);
    background-color: #f44336;
    border-radius: 5px;
    z-index: 1;
}

/* Lawyer robe */
.suit-lawyer {
    background-color: transparent;
    background-image: 
        /* Robe */
        linear-gradient(to bottom, transparent 25%, #222 25%, #222 70%, transparent 70%);
    background-position: center;
    background-size: 100% 100%;
}

.suit-lawyer::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 25%;
    width: 60%;
    height: 15%;
    background-color: #fff;
    transform: translateX(-50%);
    border-radius: 0 0 10px 10px;
    z-index: -1;
}

.suit-lawyer::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 40%;
    width: 15%;
    height: 15%;
    transform: translateX(-50%);
    background-color: #9c27b0;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    z-index: 1;
}
