@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Ensure page has proper scroll behavior */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    overflow-y: auto;
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 50%, #f8f0ff 100%);
    overflow-x: hidden; /* Only hide horizontal overflow */
    overflow-y: auto; /* Allow vertical scrolling */
    min-height: 100vh; /* Ensure minimum height */
    /* Protection styles */
    user-select: none; /* Disable text selection */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none; /* Disable iOS callout */
    -webkit-tap-highlight-color: transparent; /* Disable tap highlight */
}

/* Allow text selection in input fields */
input, textarea, [contenteditable="true"] {
    user-select: text !important;
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
}

.background-pattern {
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23f1f5f9' fill-opacity='0.4'%3E%3Cpath opacity='.5' d='M96 95h4v1h-4v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9zm-1 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    mask-image: linear-gradient(0deg, white, rgba(255,255,255,0.6));
    z-index: -1;
}

#app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden; /* Only hide horizontal overflow */
    /* Allow vertical scrolling by removing overflow-y: hidden */
}

header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background-color 0.3s ease;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    width: 3rem;
    height: 3rem;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    transition: color 0.3s ease;
}

.manage-application-btn {
    background: linear-gradient(135deg, #21376e, #793ea5);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.manage-application-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.2);
}

.careers-banner {
    background-image: linear-gradient(135deg, rgba(99, 102, 241, 0.9), rgba(139, 92, 246, 0.9)), url('https://plus.unsplash.com/premium_photo-1661497675847-2075003562fd?fm=jpg&q=60&w=3000&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MXx8Y29ycG9yYXRlfGVufDB8fDB8fHww');
    background-size: cover;
    background-position: center;
    padding: 2.5rem 2rem;
    text-align: center;
    color: white;
    position: relative;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-radius: 0 0 1rem 1rem;
    overflow: hidden;
}

.careers-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

.banner-title {
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: -0.5px;
}

.banner-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    position: relative;
    z-index: 2;
    margin: 0.5rem 0 0;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.main-content {
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    min-height: calc(100vh - 200px);
    flex: 1; /* Allow main content to expand */
}

.job-list-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3.5rem;
    padding: 1rem;
}

.job-details-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    z-index: 1000;
    overflow-y: auto;
    padding: 2rem;
    box-sizing: border-box;
}

.job-details-container.visible {
    display: block;
}

.job-item {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    height: 100%;
}

.job-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-color: #6366f1;
}

.job-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.company-logo {
    width: 3.5rem;
    height: 3.5rem;
    object-fit: contain;
    border-radius: 0.5rem;
    background: #f8fafc;
    padding: 0.5rem;
}

.job-info {
    flex: 1;
}

.job-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.25rem;
}

.company-name {
    font-size: 0.875rem;
    color: #6b7280;
}

.job-details-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.job-details-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.job-details-logo {
    margin-right: 1.5rem;
}

.company-logo-large {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 0.5rem;
    background: #f8fafc;
    padding: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.job-details-title {
    flex: 1;
}

.job-details-title h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.5rem;
}

.job-details-title h3 {
    font-size: 1.25rem;
    color: #6b7280;
    margin: 0;
}

.close-details {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.2s ease;
}

.close-details:hover {
    color: #1f2937;
    transform: rotate(90deg);
}

.chat-button {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, #21376e, #793ea5);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 1001;
}

.chat-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.job-description-content {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #374151;
    overflow-y: visible;
}

.job-description-content h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin: 2rem 0 1rem;
}

.job-description-content p {
    margin-bottom: 1rem;
}

.job-description-content ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.job-description-content li {
    margin-bottom: 0.5rem;
}

.placeholder-message {
    text-align: center;
    color: #6b7280;
    font-style: italic;
}

.chat-window {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,255,255,0.8));
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    box-sizing: border-box;
}

.chat-window.visible {
    display: flex;
}

.chat-content {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    overflow-y: auto;
    max-height: calc(100vh - 200px);
}

.close-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #333;
    transition: transform 0.3s ease;
}

.close-button:hover {
    transform: rotate(90deg);
}

.chat-header {
    display: none; /* Hide the header completely */
}

.chat-input {
    display: none; /* Hide the default input */
}

.message {
    max-width: 100%;
    margin-bottom: 1.5rem;
    padding: 0;
    word-wrap: break-word;
    animation: fadeIn 0.5s ease-in-out;
    text-align: center;
    width: 100%;
}

.message.user {
    align-self: center;
    color: #1f2937;
    font-size: 1.5rem;
    font-weight: 500;
}

.message.bot {
    align-self: center;
    color: #1f2937;
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.4;
    width: 100%;
    text-align: center;
}

/* Typewriter animation */
.typewriter {
    overflow: hidden;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    margin: 0;
    display: block;
    width: 100%;
    position: relative;
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.4;
}

.typewriter p {
    margin: 0.5rem 0;
    opacity: 0;
    animation: fadeIn 0.5s forwards;
    animation-delay: calc(var(--index) * 0.5s);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Popup input animation */
.popup-input {
    position: fixed;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 700px;
    background: transparent;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    animation: slideUp 0.5s ease-out;
    z-index: 1001;
}

@keyframes slideUp {
    from { transform: translate(-50%, 100%); opacity: 0; }
    to { transform: translate(-50%, 0); opacity: 1; }
}

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

.popup-input input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.25rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.popup-input input:focus {
    outline: none;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    background: rgba(255, 255, 255, 0.95);
}

.popup-input button {
    background: linear-gradient(135deg, #21376e, #793ea5);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    align-self: center;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.popup-input button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.popup-input-field {
    flex: 1;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}

.popup-input-field:focus {
    border-color: #2196f3;
}

/* Style for select element */
.popup-input-field[type="select"],
.popup-input-field[type="select-one"],
select.popup-input-field {
    appearance: none;
    background-color: white;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236366f1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    padding: 12px 40px 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.popup-input-field[type="select"]:hover,
.popup-input-field[type="select-one"]:hover,
select.popup-input-field:hover {
    border-color: #6366f1;
    box-shadow: 0 4px 6px rgba(99, 102, 241, 0.1);
}

.popup-input-field[type="select"]:focus,
.popup-input-field[type="select-one"]:focus,
select.popup-input-field:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    outline: none;
}

/* Style for select options */
.popup-input-field option,
select.popup-input-field option {
    padding: 12px;
    font-size: 16px;
    background-color: white;
    color: #333;
}

/* Style for the default option */
.popup-input-field option:first-child,
select.popup-input-field option:first-child {
    color: #888;
    font-style: italic;
}

.popup-send-button {
    margin-left: 8px;
    padding: 12px;
    background-color: #2196f3;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.popup-send-button:hover {
    background-color: #1976d2;
}

/* Hide send button when select is shown */
.popup-input:has(select) .popup-send-button {
    display: none;
}

.upload-button {
    background: linear-gradient(135deg, #21376e, #793ea5);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    align-self: center;
}

.upload-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.legal-content {
    display: flex;
    flex-direction: column;
    height: calc(100% - 40px);
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.legal-text {
    flex: 1;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.8);
    padding: 2rem;
    border-radius: 0.5rem;
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    white-space: pre-wrap;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(10px);
    max-width: 800px;
    width: 100%;
}

.legal-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid #e5e7eb;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    cursor: pointer;
    font-size: 1.125rem;
    color: #1f2937;
}

.checkbox-container input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 0.25rem;
    border: 1px solid #d1d5db;
    cursor: pointer;
}

.primary-button {
    background: linear-gradient(135deg, #21376e, #793ea5);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1.125rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.primary-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.secondary-button {
    background: rgba(255, 255, 255, 0.8);
    color: #4b5563;
    border: 1px solid #e5e7eb;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1.125rem;
    backdrop-filter: blur(10px);
}

.primary-button:hover:not(:disabled),
.secondary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Voice toggle container */
.voice-toggle-container {
    position: absolute;
    top: 1rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 1002;
}

.voice-toggle-button {
    background: linear-gradient(135deg, #21376e, #793ea5);
    color: white;
    border: none;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.voice-toggle-button:hover {
    transform: scale(1.1);
}

.voice-toggle-button.active {
    background: linear-gradient(135deg, #10b981, #059669);
}

.voice-toggle-label {
    font-size: 0.75rem;
    color: #4b5563;
    background: rgba(255, 255, 255, 0.8);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Persistent O animation */
.persistent-o-animation {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    z-index: 10;
}

.abstract-o {
    position: relative;
    width: 100%;
    height: 100%;
}

.o-ring {
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    border-radius: 50%;
    animation: ringFloat 3s ease-in-out infinite;
}

.o-ring:nth-child(1) {
    border-top-color: #6366f1;
    animation-delay: -0.5s;
}

.o-ring:nth-child(2) {
    border-right-color: #8b5cf6;
    animation-delay: -1s;
}

.o-ring:nth-child(3) {
    border-bottom-color: #6366f1;
    animation-delay: -1.5s;
}

.o-particles {
    position: absolute;
    inset: -10px;
    animation: particlesRotate 8s linear infinite;
}

.o-particles::before,
.o-particles::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #6366f1;
    filter: blur(2px);
}

.o-particles::before {
    top: 50%;
    left: 0;
    animation: particleFloat 3s ease-in-out infinite;
}

.o-particles::after {
    top: 20%;
    right: 0;
    animation: particleFloat 3s ease-in-out infinite reverse;
}

@keyframes ringFloat {
    0%, 100% {
        transform: rotate(0deg) scale(0.8);
    }
    50% {
        transform: rotate(180deg) scale(1.2);
    }
}

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

@keyframes particleFloat {
    0%, 100% {
        transform: scale(0.8) translateX(0);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2) translateX(5px);
        opacity: 1;
    }
}

/* Input buttons container */
.input-buttons {
    display: flex;
    gap: 0.5rem;
    margin-left: 0.5rem;
}

.voice-button {
    background: linear-gradient(135deg, #21376e, #793ea5);
    color: white;
    border: none;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.voice-button:hover {
    transform: scale(1.1);
}

.voice-button.active {
    background: linear-gradient(135deg, #10b981, #059669);
}

/* Responsive styles */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
        overflow-y: auto; /* Ensure scrolling works on mobile */
    }
    
    #app {
        overflow-x: hidden;
        overflow-y: visible; /* Allow content to scroll naturally */
    }
    
    .main-content {
        padding: 1rem;
        padding-bottom: 50px; /* Add space for the Powered by Omia footer */
        min-height: auto; /* Remove fixed height on mobile */
    }
    
    .job-list-container {
        grid-template-columns: repeat(2, 1fr);
        padding-bottom: 20px; /* Extra padding at bottom of job list */
    }
    
    /* Optimize Powered by Omia footer for tablets/medium mobile */
    div[style*="position: fixed"][style*="bottom: 10px"] {
        bottom: 8px !important;
        left: 8px !important;
        padding: 7px 11px !important;
    }
    
    div[style*="position: fixed"][style*="bottom: 10px"] img {
        width: 56px !important;
        height: 56px !important;
    }
    
    .job-details-container {
        padding: 1rem;
    }
    
    .job-details-content {
        padding-top: 4rem;
    }
    
    .job-details-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .job-details-logo {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .close-details {
        position: absolute;
        top: 1rem;
        right: 1rem;
    }
    
    .chat-button {
        top: 1rem;
        right: 1rem;
    }
}

@media (max-width: 480px) {
    .job-list-container {
        grid-template-columns: 1fr;
        padding-bottom: 30px; /* Extra padding for single column layout */
    }
    
    .main-content {
        padding: 0.75rem;
        padding-bottom: 90px; /* Reduced since footer is now smaller */
    }
    
    /* Optimize Powered by Omia footer for mobile */
    div[style*="position: fixed"][style*="bottom: 10px"] {
        bottom: 5px !important;
        left: 5px !important;
        padding: 6px 10px !important;
        gap: 6px !important;
    }
    
    div[style*="position: fixed"][style*="bottom: 10px"] img {
        width: 48px !important;
        height: 48px !important;
    }
    
    div[style*="position: fixed"][style*="bottom: 10px"] span:first-child {
        font-size: 12px !important;
    }
    
    div[style*="position: fixed"][style*="bottom: 10px"] .version-tag {
        font-size: 7px !important;
    }
    
    /* Fix iOS scrolling issues */
    body {
        -webkit-overflow-scrolling: touch;
        height: 100vh;
        height: -webkit-fill-available;
    }
    
    #app {
        height: 100vh;
        height: -webkit-fill-available;
    }
}

/* Job filter container */
.job-filter-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.job-filter-input {
    width: 100%;
    padding: 1rem 1.5rem 1rem 3rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 1.125rem;
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.job-filter-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    font-size: 1.25rem;
}

/* No results message */
.no-results-message {
    text-align: center;
    padding: 2rem;
    color: #6b7280;
    font-style: italic;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Full-screen Status View */
.fullscreen-status {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f6f8fc 0%, #e9eef5 100%);
    z-index: 1000;
    display: none;
    overflow-y: auto;
}

.fullscreen-status.visible {
    display: block;
}

.status-header {
    position: sticky;
    top: 0;
    background: white;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.status-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #1a1a1a;
}

.close-status {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s;
}

.close-status:hover {
    color: #1a1a1a;
}

.status-body {
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.status-animation {
    width: 100%;
    height: 200px;
    margin-bottom: 2rem;
}

.status-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    margin-bottom: 2rem;
}

.status-card h3 {
    margin: 0 0 1.5rem 0;
    color: #1a1a1a;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-progress {
    margin-bottom: 2rem;
}

.status-progress p {
    margin: 0.5rem 0;
    color: #666;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-progress-bar {
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    margin: 1rem 0;
}

.status-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 100%);
    width: 0;
    transition: width 1s ease-out;
}

.status-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.status-step {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.status-step.completed {
    background: #f0f9ff;
    border-left: 4px solid #6366f1;
}

.status-step-icon {
    width: 32px;
    height: 32px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #666;
    flex-shrink: 0;
}

.status-step.completed .status-step-icon {
    background: #6366f1;
    color: white;
}

.status-step-content {
    flex-grow: 1;
}

.status-step-title {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.status-step-date {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.status-step-feedback {
    background: white;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 0.5rem;
}

.status-step-feedback p {
    margin: 0;
    color: #4a5568;
}

.status-step-feedback strong {
    color: #1a1a1a;
}

/* Responsive styles for the status view */
@media (max-width: 768px) {
    .status-body {
        padding: 1rem;
    }
    
    .status-card {
        padding: 1.5rem;
    }
    
    .status-step {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .status-step-icon {
        margin-bottom: 0.5rem;
    }
}

.apply-buttons {
    position: sticky;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 20;
    align-items: flex-end;
    margin-left: auto;
}

@media (max-width: 768px) {
  .apply-buttons {
    position: static;
    top: unset;
    right: unset;
    flex-direction: column;
    align-items: stretch;
    margin: 1rem 0 0 0;
  }
}

.apply-button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
    text-align: center;
}

#chat-button {
    background-color: #6366f1;
    color: white;
}

#omia-id-button {
    background-color: #8b5cf6;
    color: white;
}

.apply-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.apply-button:active {
    transform: translateY(0);
}

/* Omia ID Popup Styles */
.omia-id-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.omia-id-popup .popup-content {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.omia-id-popup h3 {
    margin: 0 0 1rem 0;
    color: #1f2937;
    font-size: 1.5rem;
}

.omia-id-popup p {
    margin: 0 0 1.5rem 0;
    color: #6b7280;
}

.omia-id-popup input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.omia-id-popup .popup-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.omia-id-popup .popup-cancel,
.omia-id-popup .popup-submit {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.omia-id-popup .popup-cancel {
    background-color: #f3f4f6;
    color: #4b5563;
    border: 1px solid #e5e7eb;
}

.omia-id-popup .popup-submit {
    background-color: #8b5cf6;
    color: white;
    border: none;
}

.omia-id-popup .popup-cancel:hover {
    background-color: #e5e7eb;
}

.omia-id-popup .popup-submit:hover {
    background-color: #7c3aed;
    transform: translateY(-1px);
}

/* Legal Agreement Styles */
.legal-agreement {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    margin: 20px auto;
    max-width: 600px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.legal-agreement h2 {
    margin-top: 0;
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.legal-content {
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 15px;
    background-color: #f9f9f9;
    font-size: 0.9rem;
    line-height: 1.5;
}

.checkbox-container {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.checkbox-container input[type="checkbox"] {
    margin-right: 10px;
}

.legal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 15px;
}

.legal-buttons button {
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s;
    border: none;
}

.legal-buttons .cancel-button {
    background-color: #f1f1f1;
    color: #333;
    border: 1px solid #ddd;
}

.legal-buttons .cancel-button:hover {
    background-color: #e5e5e5;
}

.legal-buttons .submit-button {
    background-color: #1a237e;
    color: white;
}

.legal-buttons .submit-button:hover {
    background-color: #4338ca;
}