:root {
    --bg-color: #f8f9fa;
    --text-color: #212529;
    --container-bg: #ffffff;
    --button-bg: #007bff;
    --button-text: #ffffff;
    --accent-color: #ffc107;
}

[data-theme="dark"] {
    --bg-color: #121212;
    --text-color: #e9ecef;
    --container-bg: #1e1e1e;
    --button-bg: #375a7f;
}

body {
    margin: 0;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
}

.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 10px 15px;
    cursor: pointer;
    background-color: var(--button-bg);
    color: var(--button-text);
    border: none;
    border-radius: 50px;
    font-weight: bold;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.app-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 20px;
}

.test-header {
    text-align: center;
    margin-bottom: 40px;
}

.test-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--button-bg);
}

.test-container {
    width: 100%;
    max-width: 500px;
    background: var(--container-bg);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.description-section, .instructions-section {
    width: 100%;
    margin-bottom: 30px;
    line-height: 1.6;
}

.description-section h2, .instructions-section h3 {
    color: var(--button-bg);
    margin-bottom: 15px;
}

.instructions-section ol {
    padding-left: 20px;
}

.instructions-section li {
    margin-bottom: 8px;
}

.upload-area {
    width: 100%;
}

.upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    border: 2px dashed var(--button-bg);
    border-radius: 15px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.upload-label:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.upload-text {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--button-bg);
}

#webcam-container {
    margin-top: 20px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

#label-container {
    width: 100%;
    margin-top: 30px;
}

.prediction-bar-container {
    margin-bottom: 15px;
}

.prediction-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-weight: bold;
}

.prediction-bar-outer {
    height: 20px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
}

.prediction-bar-inner {
    height: 100%;
    background-color: var(--button-bg);
    transition: width 0.5s ease-out;
}

#result-message {
    margin-top: 20px;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
}

.disqus-wrapper {
    background-color: var(--container-bg);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    width: 100%;
    margin-top: 40px;
    box-sizing: border-box;
}

.site-footer {
    margin-top: 60px;
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid #ddd;
    width: 100%;
}

.footer-nav {
    margin-top: 15px;
}

.footer-nav a {
    color: var(--button-bg);
    text-decoration: none;
    font-weight: bold;
    margin: 0 15px;
}

.footer-nav a:hover {
    text-decoration: underline;
}

/* Tablet and Desktop Styles */
@media (max-width: 768px) {
    .test-header h1 {
        font-size: 2rem;
    }
}
