/* Theme-aware stylesheet for the ImageAI app */
body {
    font-family: sans-serif;
    margin: 0;
    padding-bottom: 60px; /* leave room for fixed footer */
}

body.dark {
    --bg-color: #121212;
    --text-color: #e1e1e1;
    --panel-bg: #1e1e1e;
    --border-color: #333;
    --link-color: #9ecbff;
    --hover-bg: #333;
}

body.light {
    --bg-color: #ffffff;
    --text-color: #000000;
    --panel-bg: #f0f0f0;
    --border-color: #cccccc;
    --link-color: #0366d6;
    --hover-bg: #dddddd;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
}

.header {
    background-color: var(--panel-bg);
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    display: none;
}

.footer {
    background-color: var(--panel-bg);
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    position: fixed;
    bottom: 0;
    width: 100%;
}

.main-layout {
    display: flex;
}

.sidebar {
    width: 200px;
    background-color: var(--panel-bg);
    padding: 1rem;
    height: calc(100vh - 100px);
}

.content {
    flex-grow: 1;
    padding: 1rem;
}

.sidebar a {
    display: block;
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: var(--text-color);
}

.sidebar a:hover {
    background-color: var(--hover-bg);
}

a {
    color: var(--link-color);
}

.random-list img {
    max-width: 150px;
    margin: 5px;
}

.status-message {
    margin: 0.5rem 0;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--text-color);
    font-size: 0.95rem;
}

body.light .status-message {
    background-color: rgba(0, 0, 0, 0.05);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    color: var(--text-color);
}

#modal-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.accordion button {
    background: none;
    border: none;
    color: var(--link-color);
    cursor: pointer;
}

.active-step {
    background-color: #68d391;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    .main-layout {
        display: block;
    }
    .sidebar {
        position: fixed;
        left: -200px;
        top: 0;
        height: 100%;
        transition: left 0.3s ease;
        z-index: 1001;
    }
    .sidebar.open {
        left: 0;
    }
}
