:root {
    --primary-color: #6366f1;
    --secondary-color: #ec4899;
    --bg-color: #f8fafc;
    --text-color: #1e293b;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;

    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

body.dark {
    --bg-color: #0f172a;
    --text-color: #f1f5f9;
    --card-bg: #1e293b;
    --border-color: #334155;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    line-height: 1.5;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    transition: background-color 0.4s, color 0.4s;
}

.container {
    max-width: 500px;
    width: 90%;
    background-color: var(--card-bg);
    padding: 2.5rem 1.5rem;
    border-radius: 28px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    position: relative;
    border: 1px solid var(--border-color);
}

header {
    margin-bottom: 2rem;
}

.top-right-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.top-right-nav a {
    text-decoration: none;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
}

.btn-toggle-theme {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    width: 34px;
    height: 34px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
}

h1 {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 0.5rem 0;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

p#instructions {
    font-size: 0.9rem;
    opacity: 0.6;
    margin-bottom: 1.5rem;
}

.teachable-machine-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#image-upload {
    font-size: 0.85rem;
    padding: 10px;
    border: 1px dashed var(--border-color);
    border-radius: 12px;
    width: 100%;
    box-sizing: border-box;
    cursor: pointer;
    background-color: var(--bg-color);
    color: var(--text-color);
}

#image-container {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 20px;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#result-display {
    font-size: 1.1rem;
    font-weight: 700;
    min-height: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.4;
}

.dog-type { color: #3b82f6; }
.cat-type { color: #f43f5e; }

@media (max-width: 480px) {
    .container {
        padding: 1.5rem 1rem;
    }
}
