/* Define color variables for light theme */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --background-color: #ffffff;
    --text-color: #333333;
    --link-color: #0077B5;
    --link-hover-color: #00A0DC;
    --job-title-bg: #ecf0f1;
    --job-title-hover-bg: #e0e6e8;
}

/* Define color variables for dark theme */
[data-theme="dark"] {
    --primary-color: #ecf0f1;
    --secondary-color: #3498db;
    --background-color: #2c3e50;
    --text-color: #ffffff;
    --link-color: #00A0DC;
    --link-hover-color: #0077B5;
    --job-title-bg: #34495e;
    --job-title-hover-bg: #2c3e50;
}

/* Reset default styles and apply box-sizing */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Basic body styles */
body {
    font-family: Arial, sans-serif;
    line-height: 1.4;
    color: var(--text-color);
    background-color: var(--background-color);
    max-width: 800px;
    margin: 0 auto;
    padding: 15px;
    transition: all 0.3s ease; /* Smooth transition for theme changes */
}

/* Header styles */
header {
    background-color: var(--job-title-bg);
    text-align: center;
    padding: 15px;
    margin-bottom: 15px;
}

/* Heading styles */
h1 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

h2 {
    color: var(--secondary-color);
    margin-top: 15px;
    margin-bottom: 8px;
}

h3 {
    color: var(--secondary-color);
    margin-bottom: 5px;
}

/* Section styles */
section {
    margin-bottom: 20px;
}

/* Job entry styles */
.job {
    margin-bottom: 15px;
}

/* hide by default */
.job ul {
    display: none;
}

.job-title {
    cursor: pointer;
    background-color: var(--job-title-bg);
    padding: 5px 8px;
    border-radius: 3px;
    display: inline-block;
}

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

.job-details {
    font-style: italic;
    margin-bottom: 5px;
    font-size: 0.9em;
}

.job-duties {
    display: none; /* Hidden by default, likely shown via JavaScript */
    list-style-type: none;
    padding-left: 15px;
    margin-top: 5px;
}

.job-duties li {
    margin-bottom: 3px;
}

/* List styles */
ul {
    padding-left: 20px;
    margin-top: 5px;
}

li {
    margin-bottom: 3px;
}

/* Header link styles */
header a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

header a:hover {
    color: var(--link-hover-color);
}

header a i {
    margin-left: 3px;
}

/* Theme switch styles */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
    position: absolute;
    top: 15px;
    right: 15px;
}

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

.theme-switch input {
    display: none;
}

.slider {
    background-color: #ccc;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
}

.slider:before {
    background-color: #fff;
    bottom: 3px;
    content: "";
    height: 22px;
    left: 3px;
    position: absolute;
    transition: .4s;
    width: 22px;
}

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

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

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

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

em {
    margin-left: 8px;
    font-size: 0.9rem;
}

/* Media query for responsive design on smaller screens */
@media screen and (max-width: 600px) {
    body {
        padding: 10px;
    }

    header {
        padding: 10px;
    }

    h1 {
        font-size: 22px;
    }

    h2 {
        font-size: 18px;
    }

    h3 {
        font-size: 16px;
    }

    .theme-switch-wrapper {
        top: 8px;
        right: 8px;
    }
}