:root {
    --primary-color: #007bff;
    --confirm-color: #28a745;
    --background-color: #f8f9fa;
    --text-color: #333;
    --card-bg-color: #ffffff;
    --border-color: #dee2e6;
    --link-color: #007bff;
    --success-bg-color: #d4edda;
    --success-text-color: #155724;
    --success-border-color: #c3e6cb;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 2em;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    gap: 1em;
}

.container {
    max-width: 600px;
    width: 100%;
    text-align: center;
}

.card {
    background-color: var(--card-bg-color);
    padding: 2em;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

h1 {
    color: var(--primary-color);
    margin-bottom: 0.5em;
}

p {
    line-height: 1.6;
    margin-bottom: 1.5em;
}

/* Form Styles */
form {
    display: flex;
    flex-direction: column;
    gap: 1.5em;
}
.form-group {
    text-align: left;
    margin-bottom: 1.5em;
}
.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.5em;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.8em;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
}
.form-group textarea {
    min-height: 150px;
    resize: vertical;
}
.time-fields {
    display: flex;
    gap: 1em;
}

/* Button Styles */
.btn {
    color: white;
    font-size: 1.1em;
    font-weight: bold;
    border: none;
    padding: 0.8em;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s;
}
.btn-primary {
    background-color: var(--primary-color);
}
.btn-primary:hover {
    background-color: #0056b3;
}
.btn-confirm {
    background-color: var(--confirm-color);
}
.btn-confirm:hover {
    background-color: #218838;
}
.btn:disabled {
    background-color: #a0c3ff;
    cursor: not-allowed;
}

/* Other Styles */
.success-message {
    background-color: var(--success-bg-color);
    color: var(--success-text-color);
    padding: 1em;
    border-radius: 5px;
    border: 1px solid var(--success-border-color);
    text-align: center;
    width: 100%;
    max-width: 560px;
    box-sizing: border-box;
}
.start-over-link {
    margin-bottom: 1.5em;
}
.start-over-link a {
    color: var(--link-color);
    text-decoration: none;
    font-weight: bold;
}
.start-over-link a:hover {
    text-decoration: underline;
}

/* Spinner */
#loading-indicator {
    display: none;
}
.spinner {
    border: 6px solid #f3f3f3;
    border-top: 6px solid var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: auto;
    margin-bottom: 1em;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Add these styles to the bottom of static/style.css */

.input-toggle {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5em;
}
.input-toggle button {
    padding: 0.5em 1em;
    border: 1px solid var(--border-color);
    background-color: var(--card-bg-color);
    cursor: pointer;
    font-weight: bold;
}
.input-toggle button.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}
.input-toggle button:first-child { border-radius: 5px 0 0 5px; }
.input-toggle button:last-child { border-radius: 0 5px 5px 0; }

#camera-view {
    display: none;
    flex-direction: column;
    gap: 1em;
}
#video-feed {
    width: 100%;
    height: auto;
    border-radius: 8px;
    background-color: #000;
}
.camera-controls {
    display: flex;
    justify-content: center;
    gap: 1em;
}

/* Floating Action Button */
.floating-btn {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: var(--primary-color);
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    cursor: pointer;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Overlay / Modal */
.overlay {
    position: fixed;
    display: none; /* Hidden by default */
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.overlay-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    width: 90%;
    height: 90%;
    max-width: 1000px;
    position: relative;
}

.overlay-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.close-btn {
    position: absolute;
    top: -15px;
    right: -15px;
    color: white;
    background-color: #333;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
}

.overlay-content img {
    display: block;
    margin: auto;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
}