:root {
    --primary-color: #4CAF50;
    --secondary-color: #2196F3;
    --background-color: #202224;
    --text-color: #FFFFFF;
    --header-color: #1E88E5;
    --card-bg-color: #2A2E33;
    --shadow-color: rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    padding-top: 60px;
}

header {
    background-color: var(--header-color);
    color: white;
    padding: 1rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px var(--shadow-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#app-title {
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
}

#menu-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

#top-menu {
    background-color: var(--card-bg-color);
    box-shadow: 2px 0 4px var(--shadow-color);
    position: fixed;
    width: 250px;
    height: 100%;
    top: 0px;
    padding-top: 60px;
    left: -250px;
    z-index: 999;
    transition: left 0.3s ease-in-out;
}

#top-menu.active {
    left: 0;
}

nav ul {
    list-style: none;
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    padding: 1rem;
    display: flex;
    align-items: center;
    transition: background-color 0.3s ease;
}

nav ul li a:hover, nav ul li a.active {
    background-color: var(--primary-color);
    color: white;
}

nav ul li a .material-icons {
    margin-right: 0.5rem;
}

main {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
}

section {
    display: none;
    background-color: var(--card-bg-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px var(--shadow-color);
}

section.active {
    display: block;
}

h2, h3, h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.job-card, .task-card {
    background-color: var(--card-bg-color);
    border: 1px solid #3E4348;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: box-shadow 0.3s ease;
}

.job-card:hover, .task-card:hover {
    box-shadow: 0 4px 8px var(--shadow-color);
}

.primary-btn, .secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    margin-top: 1rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

.primary-btn:active, .secondary-btn:active {
    transform: scale(0.98);
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
}

.primary-btn:hover {
    background-color: #45a049;
}

.secondary-btn {
    background-color: var(--secondary-color);
    color: white;
}

.secondary-btn:hover {
    background-color: #1e88e5;
}

.material-icons {
    vertical-align: middle;
    margin-right: 0.5rem;
}

textarea {
    width: 100%;
    padding: 0.5rem;
    margin-top: 1rem;
    border: 1px solid #3E4348;
    border-radius: 5px;
    resize: vertical;
    background-color: #3E4348;
    color: var(--text-color);
}

.progress-bar-container {
    width: 100%;
    background-color: #3E4348;
    border-radius: 5px;
    margin: 1rem 0;
    overflow: hidden;
}

.progress-bar {
    height: 20px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

#camera-interface {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 1001;
}

#camera-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#take-photo-btn {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

#audio-timer {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0.5rem 0;
    color: var(--primary-color);
}

#task-photo, #requirements-img {
    max-width: 100%;
    border-radius: 5px;
    margin-top: 1rem;
    box-shadow: 0 2px 4px var(--shadow-color);
}

.task-icon {
    margin-right: 0.5rem;
    vertical-align: middle;
    color: var(--primary-color);
}

.notification {
    position: fixed;
    top: 70px;
    right: 20px;
    background-color: var(--primary-color);
    color: white;
    padding: 1rem;
    border-radius: 5px;
    box-shadow: 0 2px 4px var(--shadow-color);
    z-index: 1002;
    transition: opacity 0.3s ease;
}

.task-card.active {
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 10px var(--shadow-color);
}

.active-task-interface {
    background-color: #3E4348;
    border-radius: 5px;
    padding: 1rem;
    margin-top: 1rem;
}

#requirements-list {
    list-style-type: none;
    padding: 0;
}

#requirements-list li {
    margin-bottom: 0.5rem;
}

#requirements-list input[type="checkbox"] {
    margin-right: 0.5rem;
}

.job-header {
    text-align: center;
    margin-bottom: 2rem;
}

.job-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.job-meta {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.meta-item {
    display: flex;
    align-items: center;
    margin: 0 1rem;
}

.meta-item .material-icons {
    margin-right: 0.5rem;
}

.job-section {
    background-color: var(--card-bg-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px var(--shadow-color);
}

.job-section h2 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

#start-job-btn {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 2rem auto;
    font-size: 1.2rem;
    padding: 1rem;
}

#map-container {
    height: 200px;
    background-color: #3E4348;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #FFFFFF;
}

#requirements-list, #tasks-list {
    list-style-type: none;
    padding: 0;
}

#requirements-list li, #tasks-list li {
    background-color: #3E4348;
    border-radius: 4px;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
}

@media (max-width: 600px) {
    body {
        padding-top: 50px;
    }

    header {
        padding: 0.5rem;
    }

    #app-title {
        font-size: 1.2rem;
    }

    #top-menu {
        top: 50px;
    }

    .primary-btn, .secondary-btn {
        width: 100%;
    }
}

#menu-toggle {
    display: block;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

#sign-in-btn {
    padding: 0.5rem 1rem;
    font-size: 1rem;
}

#check-in-btn, #start-job-btn {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 1rem auto;
    font-size: 1.2rem;
    padding: 1rem;
}

#check-in-info {
    background-color: #3E4348;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

#job-details .job-meta {
    display: flex;
    justify-content: space-around;
    margin-bottom: 1rem;
}

#job-details .meta-item {
    display: flex;
    align-items: center;
}

#job-details .meta-item .material-icons {
    margin-right: 0.5rem;
}

#tasks-list .task-card {
    margin-bottom: 1rem;
}

#tasks-list .task-card.active {
    border: 2px solid var(--primary-color);
}

.active-task-interface {
    background-color: #3E4348;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

#task-text-description {
    width: 100%;
    min-height: 100px;
    margin-bottom: 1rem;
}

#audio-timer {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0.5rem 0;
    color: var(--primary-color);
}

#requirements-section .active-task-interface {
    background-color: #3E4348;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

#requirements-description {
    width: 100%;
    min-height: 100px;
    margin-bottom: 1rem;
}

#requirements-photos {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 1rem;
}

#requirements-photos img {
    max-width: 100px;
    border-radius: 4px;
}