:root {
    --bg-color: #f4f7f9;
    --main-color: #4a90e2;
    --accent-color: #50e3c2;
    --text-color: #333;
    --light-gray: #e0e0e0;
    --white: #fff;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --font-family: 'Poppins', sans-serif;
    --input-bg: #fff;
    --header-bg: rgba(255, 255, 255, 0.9);
}

body.dark-mode {
    --bg-color: #1a1a1a;
    --main-color: #64b5f6;
    --accent-color: #81c784;
    --text-color: #e0e0e0;
    --light-gray: #333;
    --white: #2c2c2c;
    --shadow-color: rgba(0, 0, 0, 0.5);
    --input-bg: #3d3d3d;
    --header-bg: rgba(26, 26, 26, 0.9);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 0;
    background-image: radial-gradient(circle, rgba(0,0,0,0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark-mode {
    background-image: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
}

.main-header {
    width: 100%;
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px var(--shadow-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--main-color);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--main-color);
}

.app-container {
    width: 100%;
    max-width: 800px;
    background: var(--white);
    margin: 2rem 0;
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 10px 30px var(--shadow-color);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    color: var(--main-color);
    margin-bottom: 1.5rem;
}

.section-desc {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

body.dark-mode .section-desc {
    color: #aaa;
}

.content-text {
    line-height: 1.8;
    color: var(--text-color);
}

.add-task-container {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

#task-input {
    flex-grow: 1;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    background-color: var(--input-bg);
    color: var(--text-color);
    transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

#task-input:focus {
    outline: none;
    border-color: var(--main-color);
}

.add-button {
    background-color: var(--main-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.add-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.5);
}

.task-list-container {
    list-style: none;
    padding: 0;
    margin: 0;
}

.task-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--light-gray);
}

.task-item.completed .task-text {
    text-decoration: line-through;
    color: #999;
}

.task-checkbox {
    margin-right: 1rem;
    width: 20px;
    height: 20px;
    accent-color: var(--main-color);
}

.task-text {
    flex-grow: 1;
    font-size: 1.1rem;
}

.delete-button {
    background: none;
    border: none;
    color: #ff4d4d;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.delete-button:hover {
    background-color: #ffe5e5;
}

.divider {
    height: 1px;
    background-color: var(--light-gray);
    margin: 3rem 0;
    border: none;
}

.partnership-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--main-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.partnership-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
}

.partnership-form input,
.partnership-form textarea {
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    background-color: var(--input-bg);
    color: var(--text-color);
    font-family: var(--font-family);
}

.partnership-form textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-button {
    background-color: var(--accent-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.submit-button:hover {
    transform: translateY(-2px);
}

body.dark-mode .submit-button {
    color: #1a1a1a;
}

.main-footer {
    width: 100%;
    max-width: 800px;
    margin-top: 2rem;
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--light-gray);
}

.footer-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.85rem;
}

/* Classifier Styles */
.classifier-section {
    text-align: center;
}

.classifier-desc {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

#webcam-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow-color);
    background: #000;
}

#label-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.prediction-item {
    background: var(--light-gray);
    padding: 1rem;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

body.dark-mode .prediction-item {
    background: #3d3d3d;
}

.prediction-bar {
    height: 10px;
    background: var(--main-color);
    border-radius: 5px;
}

.start-classifier-btn {
    background-color: var(--main-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.start-classifier-btn:hover {
    transform: translateY(-2px);
}

/* Legal Page Styles */
.legal-page .content-text {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.legal-page h2 {
    margin-top: 2rem;
    color: var(--main-color);
}
