/* Reset and base styles */
body {
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #000000;
    font-family: 'Roboto', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #ffffff, #f5f5f5, #ffffff);
    position: relative;
    overflow-x: hidden;
    width: 100%;
    margin-bottom: calc(8rem + 3rem); /* Audio visualizer height + extra space */
}

/* Add a subtle animated gradient background */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.03) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
    z-index: 0;
}

/* Header and Logo styles */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem;
}

.logo-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.walljobs-link {
    display: inline-block;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.walljobs-link:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

.walljobs-link img {
    max-width: 120px;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.1));
}

/* Main container adjustments */
.container {
    max-width: 1200px;
    width: 95%;
    margin: 80px auto 0;
    padding: 0.5rem;
    position: relative;
    z-index: 1;
}

/* Content layout adjustments */
.content {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    justify-content: space-between;
    margin-top: 0;
    width: 100%;
}

/* Left panel adjustments */
.left-panel {
    flex: 0.9;
    text-align: left;
    padding: 1.25rem;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-radius: 1.5rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.8);
    color: #2c3e50;
    width: 100%;
    min-width: 240px;
    position: relative;
    overflow: hidden;
}

.left-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.4));
    z-index: 0;
}

.left-panel > * {
    position: relative;
    z-index: 1;
}

/* Right panel adjustments */
.right-panel {
    flex: 1.1;
    text-align: left;
    padding: 0;
    color: #000000;
    width: 100%;
    min-width: 240px;
}

.right-panel h2 {
    color: #000000;
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.right-panel .requirements {
    background: none;
    border: none;
    padding: 0;
    margin: 1.5rem 0;
}

.right-panel .requirements h2 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #000000;
}

.right-panel .requirements ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.right-panel .requirements li {
    color: #000000;
    margin-bottom: 0.8rem;
    padding-left: 2rem;
    position: relative;
}

.right-panel .requirements li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #1a73e8;
}

/* Update button for right panel */
/* #startButton {
    background: #1a73e8;
    border: none;
    color: #ffffff;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    border-radius: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 2rem 0;
    font-weight: 500;
    letter-spacing: 0.5px;
    box-shadow: none;
    width: 100%;
    max-width: 260px;
}

#startButton:hover {
    background: #1557b0;
    transform: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

#startButton:active {
    background: #174ea6;
    transform: none;
} */

/* Responsive adjustments */
@media (max-width: 1024px) {
    .container {
        width: 95%;
        padding: 0.5rem;
        margin-top: 60px;
    }

    .content {
        flex-direction: column;
        gap: 1.5rem;
    }

    .left-panel,
    .right-panel {
        width: 100%;
        min-width: auto;
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: 0.5rem;
    }

    .logo-section {
        padding: 0 0.5rem;
    }

    .walljobs-link img {
        max-width: 100px;
    }

    .container {
        margin-top: 50px;
        padding: 0.5rem;
    }

    .left-panel {
        padding: 1rem;
    }

    .interview-header {
        margin-bottom: 1rem;
    }

    .job-details {
        margin: 1rem 0;
    }

    /* Adjust container spacing in right panel */
    #before-start-interview-container,
    #after-start-interview-container,
    #end-interview-container {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    .interview-header .title-row h1 {
        font-size: 1.8rem;
    }

    .audio-label {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    /* color: #ffffff; */
    font-weight: 300;
    letter-spacing: -0.5px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    /* color: rgba(255, 255, 255, 0.8); */
    font-weight: 300;
    letter-spacing: 0.5px;
    line-height: 1.6;
}

/* New styles for the interview page */
.interview-header {
    text-align: left;
    margin-bottom: 1.5rem;
    position: relative;
}

.title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0.5rem 0;
}

.title-row h1 {
    color: #2c3e50;
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.5px;
}

.interview-badge {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-block;
    margin: 0;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.2);
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.interview-info {
    margin: 1.5rem 0;
    text-align: left;
}

.interview-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #4a5568;
    margin-bottom: 1rem;
}

.interview-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    margin: 1rem 0;
}

.detail-item {
    padding: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    border: 1px solid rgba(44, 62, 80, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.detail-icon {
    font-size: 1.5rem;
}

.detail-text {
    font-size: 1rem;
    color: #2c3e50;
}

/* Update existing button styles */
#startButton {
    background: linear-gradient(135deg, #4d7fff, #0044ff);
    border: none;
    color: #ffffff;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 2rem auto 0;
    font-weight: 500;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 24px rgba(0, 68, 255, 0.2);
}

#startButton:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 68, 255, 0.3);
}

#startButton:active {
    transform: translateY(1px);
}

#startButton:disabled {
    background: linear-gradient(135deg, #666666, #444444);
    cursor: not-allowed;
    box-shadow: none;
}


/* started button */
#startedButton {
    background: linear-gradient(135deg, #ff4d4d, #ff0000);
    border: none;
    color: #ffffff;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 2rem auto 0;
    font-weight: 500;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 24px rgba(255, 0, 0, 0.2);
}

#startedButton:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(255, 0, 0, 0.3);
}

#startedButton:active {
    transform: translateY(1px);
}

#startedButton:disabled {
    background: linear-gradient(135deg, #666666, #444444);
    cursor: not-allowed;
    box-shadow: none;
}



/* Update audio player styling */
.interview-audio {
    margin-top: 1.5rem;
    width: 100%;
    max-width: 260px;
    height: 2.5rem;
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Add animations */
@keyframes pulse {
    0% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.6;
    }
}

/* Update existing audio player styles */
/* Webkit (Chrome, Safari) specific styles for audio player */
.interview-audio::-webkit-media-controls-panel {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0 8px;
}

.interview-audio::-webkit-media-controls-current-time-display,
.interview-audio::-webkit-media-controls-time-remaining-display {
    color: #ffffff;
    font-size: 12px;
}

.interview-audio::-webkit-media-controls-timeline {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    margin: 0 8px;
    height: 3px;
}

.interview-audio::-webkit-media-controls-volume-slider {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 0 4px;
    width: 50px;
}

/* Firefox specific styles */
.interview-audio::-moz-range-track {
    background-color: rgba(255, 255, 255, 0.2);
    height: 3px;
}

.interview-audio::-moz-range-thumb {
    background-color: #ffffff;
    width: 10px;
    height: 10px;
}

/* Update canvas styling */
canvas {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100vw !important;
    height: 8rem !important;
    z-index: 1;
    transform-origin: bottom;
    image-rendering: pixelated;
    display: block;
    margin: 0;
    padding: 0;
}

/* Optional: Enhance the gradient overlay */
body::after {
    content: '';
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 250px;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        rgba(0,0,0,0.2) 50%,
        rgba(0,0,0,0.4) 100%
    );
    z-index: 2;
    pointer-events: none;
}

/* Update footer styling to be above the canvas */
footer {
    background-color: transparent;
    color: #fff;
    text-align: center;
    padding: 10px;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 2;
}

footer a {
	color: #fff;
}

/* New styles for simulation badge */
.simulation-badge {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
    letter-spacing: 0.5px;
}

/* Job details section */
.job-details {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 1rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border: 1px solid rgba(44, 62, 80, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.job-details h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #2c3e50;
    font-weight: 600;
}

.job-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.job-title,
.company-name {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.label {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.value {
    font-size: 1.1rem;
    color: #2c3e50;
    font-weight: 500;
}

/* Update interview containers */
#before-start-interview-container,
#after-start-interview-container,
#end-interview-container {
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Additional responsive adjustments */
@media (max-width: 480px) {
    .detail-item {
        padding: 0.5rem;
    }

    .interview-badge,
    .simulation-badge {
        padding: 0.3rem 0.8rem;
        font-size: 0.8rem;
    }

    .job-details {
        padding: 0.8rem;
    }

    .value {
        font-size: 1rem;
    }
}

/* Audio label styling */
.audio-label {
    position: fixed;
    bottom: 2rem; /* Position it just above the audio visualizer */
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    z-index: 3;
    pointer-events: none; /* Prevents interaction with the label */
}

/* Adjust form elements */
.name-input-container,
.resume-input-container,
.language-selection {
    margin-bottom: 1.5rem;
}

#candidate-name,
#candidate-resume {
    width: 100%;
}
