/* Import the 'Inter Regular' and 'PT Serif' fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=PT+Serif:wght@700&display=swap');

/* Domain Switcher Navigation */
.domain-switcher {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-bottom: 2px solid #e5e5e5;
    padding: 12px 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    z-index: 100;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
    justify-content: space-between;
}

.domain-switcher-left {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 32px; /* Fixed height for alignment */
}

.domain-switcher-label {
    color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    height: 32px;
}

.domain-links {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 100%;
}

.domain-link {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    text-decoration: none;
    padding: 0 16px;
    border-radius: 20px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    line-height: 1;
    box-sizing: border-box;
}

.domain-link:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.domain-link.active {
    background-color: #ffffff;
    color: #764ba2;
    cursor: default;
    font-weight: 600;
}

.domain-link.active:hover {
    background-color: #ffffff;
    transform: none;
}

/* Header Buttons (right side) */
.domain-switcher-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-btn {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 0 16px;
    border-radius: 20px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    line-height: 32px;
    box-sizing: border-box;
    margin: 0;
    vertical-align: middle;
    text-decoration: none;
}

.header-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Clear Cookies Button */
.clear-cookies-btn {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 0 16px;
    border-radius: 20px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    line-height: 32px;
    box-sizing: border-box;
    margin: 0;
    vertical-align: middle;
}

.clear-cookies-btn:hover {
    background-color: rgba(255, 67, 54, 0.8);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Adjust container to account for domain switcher */
.container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    position: relative;
}

/* Welcome Section */
.welcome-section {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.welcome-title {
    font-family: 'PT Serif', serif;
    font-size: 42px;
    color: white;
    margin: 0 0 10px 0;
}

.welcome-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.section-title {
    font-family: 'PT Serif', serif;
    font-size: 32px;
    color: #1e1e1e;
    margin: 40px 0 25px 0;
    padding-left: 0;
}

/* Job Header Section */
.job-header {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.company-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 8px;
}

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

.job-title {
    font-family: 'PT Serif', serif;
    font-size: 32px;
    color: #1e1e1e;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.job-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #606060;
}

.job-meta span {
    display: inline-flex;
    align-items: center;
}

/* Job Content Section */
.job-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.job-content h2 {
    font-family: 'PT Serif', serif;
    font-size: 24px;
    color: #1e1e1e;
    margin: 30px 0 15px 0;
    padding-left: 0;
}

.job-content h2:first-child {
    margin-top: 0;
}

.job-content p {
    line-height: 1.6;
    color: #606060;
    margin-bottom: 20px;
}

/* Apply Button Styles */
.apply-button-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.apply-button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.apply-bottom-section {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f0fe 100%);
    border-radius: 12px;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.apply-button-secondary {
    background: #1a73e8;
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(26, 115, 232, 0.3);
}

.apply-button-secondary:hover {
    background: #155fa0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 115, 232, 0.4);
}

/* Job Tile Preview Block */
.job-tile-preview {
    position: relative;
    display: flex;
    align-items: center;
    gap: 25px;
    background-color: #ffffff;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.job-tile-preview:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.job-tile-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
    flex-shrink: 0;
    background-color: #f8f9fa;
    padding: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.job-tile-content {
    flex: 1;
}

.job-tile-preview h2 {
    font-family: 'PT Serif', serif;
    font-size: 22px;
    color: #1e1e1e;
    margin: 0 0 8px 0;
    padding: 0 !important; /* Override global h2 padding */
}

.job-tile-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #606060;
    margin-bottom: 12px;
}

.job-tile-preview p {
    color: #606060;
    line-height: 1.5;
    margin: 0 0 15px 0;
}

.job-tile-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: gap 0.3s ease;
}

.job-tile-link:hover {
    gap: 10px;
    text-decoration: none;
}

.job-tile-link::after {
    content: '→';
    transition: transform 0.3s ease;
}

.job-tile-link:hover::after {
    transform: translateX(3px);
}

/* Remove old button styles - no longer needed */

.job-tile-preview a {
    margin-top: 10px;
    color: #1a73e8;
    text-decoration: none;
    font-weight: bold;
}

.job-tile-preview a:hover {
    text-decoration: underline;
}

/* Apply Now Buttons */
button {
    background-color: #1a73e8;
    color: #ffffff;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

#clientName, #loadDataButton {
    height: 40px;
    padding: 8px 15px;
    font-size: 16px;
    border: 1px solid #e5e5e5;
    border-radius: 5px;
    margin-top: 10px;
    box-sizing: border-box; 
    line-height: 24px;
    padding-left: 20px;
}

button:hover {
    background-color: #155fa0;
}

/* Other Jobs Section */
.other-jobs {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.other-jobs h3 {
    font-family: 'PT Serif', serif;
    font-size: 28px;
    color: #1e1e1e;
    margin-bottom: 25px;
    padding-left: 0;
}

.other-jobs .job-tile-preview {
    margin-bottom: 20px;
}

.other-jobs .job-tile-preview:last-child {
    margin-bottom: 0;
}

/* Apply 'Inter Regular' font to the body and all elements */
html, body {
    font-family: 'Inter', sans-serif;
    min-height: 100%;
    width: 100%;
    opacity: 1;
    margin: 0;
    padding: 0;
    padding-bottom: 60px; /* Add space at bottom of all pages */
}

/* Background for the left half of the screen */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(180deg, rgb(214, 235, 255) 0%, rgb(255, 255, 255) 100%);
    z-index: -1; /* Ensure it stays in the background */
}

/* Gradient and SVG background for the right half of the screen */
body::after {
    content: "";
    position: fixed;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(180deg, rgb(214, 235, 255) 0%, rgb(255, 255, 255) 100%), url('data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20viewBox%3D%220%200%201280%201356%22%3E%3Cg%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22idss1088534246_1g-692153453%22%20x1%3D%221%22%20x2%3D%220%22%20y1%3D%220.7874477321174711%22%20y2%3D%220.21255226788252893%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22rgb(26%2C64%2C229)%22%20stop-opacity%3D%221%22%3E%3C%2Fstop%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22rgb(244%2C195%2C215)%22%20stop-opacity%3D%221%22%3E%3C%2Fstop%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Cpath%20d%3D%22M%20506.856%20119.561%20L%20292.353%201030.4%20C%20285.574%201076.17%20310.002%201129.54%20355.928%201155.31%20C%20401.854%201181.08%20459.415%201178.67%20499.022%201146.36%20L%201205.618%20506.684%20C%201213.86%20501.395%201224.314%20492.388%201230.94%20481.233%20C%201257.446%20436.614%201241.26%20377.957%201195.339%20352.187%20C%201153.235%20328.565%201101.119%20338.984%201075.21%20374.019%20L%201005.856%20439.217%20L%20971.411%20419.89%20C%20925.485%20394.12%20871.16%20408.257%20844.654%20452.876%20C%20820.357%20493.777%20831.095%20544.421%20870.984%20571.761%20L%20824.752%20615.227%20L%20555.01%20880.316%20C%20544.556%20889.323%20530.275%20896.183%20514.966%20887.593%20C%20503.485%20881.151%20498.63%20863.553%20501.429%20850.251%20L%20602.775%20490.673%20L%20618.39%20430.028%20C%20658.871%20447.784%20709.368%20431.5%20733.665%20390.599%20C%20760.172%20345.98%20745.607%20293.188%20699.681%20267.418%20L%20669.063%20250.238%20L%20695.286%20145.968%20C%20703.684%20106.061%20686.319%2066.572%20651.875%2047.244%20C%20605.948%2021.475%20545.588%2037.182%20519.081%2081.802%20C%20512.455%2092.956%20509.655%20106.258%20506.856%20119.561%20Z%22%20fill%3D%22url(%23idss1088534246_1g-692153453)%22%3E%3C%2Fpath%3E%3C%2Fg%3E%3C%2Fsvg%3E');
    background-size: cover;
    background-blend-mode: overlay;
    opacity: 1;
    z-index: -1; /* Ensure it stays in the background */
}

/* Add padding to h2 */
h2 {
    padding-left: 20px;
}

/* Style for label */
label {
    display: block;
    margin-top: 20px;
    margin-bottom: 5px;
    font-family: "PT Serif", "PT Serif Placeholder", serif;
    font-size: 36px;
    font-style: normal;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 100%;
    color: #0d2072;
    text-align: start;
    text-decoration: none;
    text-transform: none;
    padding-left: 20px;
}

/* New Table Styles */
table {
    border-collapse: collapse;
    width: 100%;
    margin-top: 20px; /* Aligns with job-tile-preview margin for consistent spacing */
}

table, th, td {
    border: 1px solid #e5e5e5;
}

th, td {
    text-align: left;
    padding: 8px;
}

th {
    background-color: #f8f9fa; /* Header background to distinguish from rows */
    color: #1e1e1e; /* Matching color for consistency */
}

tr:nth-child(even) {
    background-color: #f2f2f2; /* Zebra striping for rows */
}

button {
    background-color: #1a73e8;
    color: #ffffff;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

button:hover {
    background-color: #155fa0; /* Darker shade on hover for the button */
}

/* Back Link Style */
.back-link {
    display: block;
    margin-top: 20px;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.back-link:hover {
    text-decoration: underline;
}

/* Centered Page Layout (for error, apply pages) */
.centered-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 60px);
    text-align: center;
    padding: 40px 20px;
}

.centered-card {
    background: white;
    padding: 50px 60px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    max-width: 500px;
    width: 100%;
}

.centered-card h1 {
    font-family: 'PT Serif', serif;
    font-size: 32px;
    color: #1e1e1e;
    margin: 0 0 15px 0;
}

.centered-card p {
    color: #606060;
    line-height: 1.6;
    margin: 0 0 25px 0;
}

.centered-card .job-id-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 25px;
}

.centered-card .error-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.centered-card .success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #34c759 0%, #30d158 100%);
    color: white;
    font-size: 40px;
    font-weight: bold;
    border-radius: 50%;
    margin-bottom: 20px;
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1e1e1e;
    color: white;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}

.cookie-banner.hidden {
    display: none;
}

.cookie-banner-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
}

.cookie-banner-text a {
    color: #667eea;
    text-decoration: underline;
}

.cookie-banner-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.cookie-btn-accept:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.cookie-btn-decline {
    background: transparent;
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
}

.cookie-btn-decline:hover {
    background: rgba(255,255,255,0.1);
}

