:root {
    /* Light Mode (default) */
    --bg-color: #ffffff;
    --text-color: #37352f;
    --light-gray: #f7f6f3;
    --notion-blue: #2383e2;
    --border-color: #e6e6e6;
    --hover-bg: #f1f1ef;
    --tag-bg: #ebeced;
    --tag-text: #787774;
    --secondary-text: #6b6b6b;
    --accent-color: #141414;
    --logo-filter: none;
}

[data-theme="dark"] {
    --bg-color: #1e1e1e;
    --text-color: #e6e6e6;
    --light-gray: #2d2d2d;
    --notion-blue: #2d9cff;
    --border-color: #3a3a3a;
    --hover-bg: #2a2a2a;
    --tag-bg: #383838;
    --tag-text: #bbbbbb;
    --secondary-text: #a0a0a0;
    --accent-color: #ffffff;
    --logo-filter: invert(1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.5;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.header {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo {
    width: 80px;
    height: 80px;
    margin-bottom: 24px;
    filter: var(--logo-filter);
    transition: filter 0.3s ease;
}

h1 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
    text-align: center;
}

.subtitle {
    font-size: 18px;
    color: var(--secondary-text);
    margin-bottom: 32px;
    text-align: center;
    max-width: 600px;
    transition: color 0.3s ease;
}

.date-header {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
    transition: border-color 0.3s ease;
}

.job-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.job-card {
    display: flex;
    align-items: center;
    padding: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.job-card:hover {
    background-color: var(--hover-bg);
}

.job-card:hover::after {
    content: "Apply →";
    position: absolute;
    right: 16px;
    color: var(--accent-color);
    font-weight: 500;
}

.job-icon {
    width: 28px;
    height: 28px;
    margin-right: 12px;
    background-color: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    flex-shrink: 0;
    transition: background-color 0.3s ease;
}

.job-title {
    font-size: 16px;
    font-weight: 500;
}

.tag {
    display: inline-flex;
    align-items: center;
    vertical-align: middle; /* This helps align with other tags */
    line-height: normal; /* Prevents line-height issues */
    background-color: var(--tag-bg);
    color: var(--tag-text);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-top: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.tag2 {
    display: inline-flex;
    align-items: center;
    background-image: linear-gradient(135deg, var(--gradient-start, #00004d) 0%, var(--gradient-end, #101828) 100%);;
    color: whitesmoke;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-top: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-weight: 600;
}

.tag3 {
    display: inline-flex;
    align-items: center;
    background-image: linear-gradient(135deg, var(--gradient-start, #FF6444) 0%, var(--gradient-end, #FF6ADE) 100%);;
    color: whitesmoke;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-top: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-weight: 600;
}

.tag-icon {
    width: 14px;
    height: 14px;
    margin-right: 4px;
}
.footer {
    margin-top: 48px;
    text-align: center;
    color: var(--secondary-text);
    font-size: 14px;
    transition: color 0.3s ease;
}

/* Animation for hover state */
.job-card {
    position: relative;
}

.job-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background-color: var(--accent-color);
    transform: scaleY(0);
    transition: transform 0.2s ease, background-color 0.3s ease;
}

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

/* Dark mode toggle */
.theme-switch-wrapper {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
}

.theme-switch {
    display: inline-block;
    height: 34px;
    position: relative;
    width: 60px;
}

.theme-switch input {
    display: none;
}

.slider {
    background-color: var(--light-gray);
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.slider:before {
    background-color: var(--bg-color);
    bottom: 4px;
    content: "";
    height: 26px;
    left: 4px;
    position: absolute;
    transition: .4s;
    width: 26px;
    z-index: 1;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.icon-light, .icon-dark {
    font-size: 16px;
    z-index: 0;
}

input:checked + .slider {
    background-color: #384254;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    h1 {
        font-size: 32px;
    }
    
    .subtitle {
        font-size: 16px;
    }
    
    .job-card:hover::after {
        display: none;
    }
    
    .theme-switch-wrapper {
        position: fixed;
        top: 10px;
        right: 10px;
    }
    
    body {
        padding-top: 60px;
    }
}
