/* style.css - Complete Styles for SK Image Bot */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&family=Lato:wght@400;700;900&display=swap');

:root {
    --primary-color: #007bff;
    --secondary-color: #f8f9fa;
    --header-bg: #343a40;
    --card-bg: #ffffff;
    --text-color: #343a40;
    --text-light: #6c757d;
    --border-color: #dee2e6;
    --success-color: #198754;
    --error-color: #dc3545;
    --button-danger-bg: #c82333;
    --google-blue: #4285F4;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --border-radius: 8px;
}

/* --- Global & Body --- */
body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--secondary-color);
    color: var(--text-color);
    margin: 0;
    line-height: 1.6;
}
.container {
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 20px;
}
h1, h2, h3, h4 { font-family: 'Lato', sans-serif; }

/* --- Header & Navigation --- */
.site-header {
    background: var(--header-bg);
    color: white;
    box-shadow: var(--shadow-md);
    padding: 10px 0;
}
.header-top {
    display: flex; justify-content: space-between; align-items: center;
    max-width: 1100px; margin: 0 auto; padding: 0 20px;
}
.logo {
    font-family: 'Lato', sans-serif; font-weight: 900; font-size: 1.8em;
    color: white; text-decoration: none;
}
.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav a {
    text-decoration: none; color: white; padding: 10px 18px;
    border-radius: var(--border-radius); transition: background-color 0.2s;
    font-weight: 700;
}
.main-nav a:hover { background-color: rgba(255, 255, 255, 0.1); }
.main-nav a.active { background-color: var(--primary-color); }

/* --- Buttons --- */
.button-primary, .button-danger {
    padding: 12px 20px; border-radius: var(--border-radius);
    font-weight: 700; font-size: 1em; cursor: pointer; border: none;
    transition: all 0.2s ease-in-out; text-decoration: none;
    display: inline-block; text-align: center;
}
.button-primary { background-color: var(--primary-color); color: white; }
.button-primary:hover:not(:disabled) { background-color: #0056b3; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.button-primary:disabled { background-color: #999; cursor: not-allowed; }
.button-danger { background-color: var(--error-color); color: white; }
.button-danger:hover { background-color: var(--button-danger-bg); }

/* --- Special Buttons (e.g., Google) --- */
.google-btn {
    background-color: var(--google-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.google-btn:hover { background-color: #3367D6; }
.google-btn img {
    background-color: white;
    border-radius: 50%;
    padding: 2px;
    width: 20px;
    height: 20px;
}

/* --- Authentication & Form Pages --- */
.auth-form-container {
    max-width: 500px; margin: 40px auto; padding: 40px;
    border-radius: var(--border-radius); background-color: white; box-shadow: var(--shadow-md);
}
.form-group { margin-bottom: 20px; }
label { display: block; margin-bottom: 8px; font-weight: 700; }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"] {
    width: 100%; padding: 12px; border: 1px solid var(--border-color);
    border-radius: var(--border-radius); font-size: 1em; box-sizing: border-box;
}
input:focus {
    outline: none; border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}
.auth-form-container button[type="submit"] { width: 100%; margin-top: 10px; }
.auth-switch-link { text-align: center; margin-top: 25px; font-size: 0.9em; }
.auth-switch-link a { color: var(--primary-color); text-decoration: none; font-weight: 700; }
.auth-switch-link a:hover { text-decoration: underline; }

/* --- Form Messages (Success/Error) --- */
.form-message {
    margin-top: 15px; padding: 12px; border-radius: var(--border-radius);
    font-weight: bold; text-align: center; display: none;
}
.form-message.visible { display: block; }
.form-message.success { color: var(--success-color); background-color: #d1e7dd; }
.form-message.error { color: var(--error-color); background-color: #f8d7da; }

/* --- Add Retriever Page Specific Styles --- */
/* (Reusing instructions for a cleaner look) */
.setup-step {
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid var(--border-color);
}
.setup-step:first-child {
    padding-top: 0;
    margin-top: 0;
    border-top: none;
}
.setup-step h4 {
    margin-top: 0;
    color: var(--primary-color);
}
.setup-step p {
    color: var(--text-light);
}

/* --- Profile Prompt from SK Filter (useful) --- */
.profile-prompt {
    background-color: #e9f5ff;
    border: 1px solid #bde0fe;
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    margin-top: 20px;
}
.profile-prompt h2 { margin-top: 0; color: var(--primary-color); }
.profile-prompt p { font-size: 1.1em; color: var(--text-color); margin-bottom: 25px; }


/* --- Choices.js Custom Styling --- */
.choices { margin-bottom: 0; }
.choices__inner {
    background-color: #fff; padding: 7px 12px;
    border: 1px solid var(--border-color); border-radius: var(--border-radius);
    font-size: 1em; min-height: auto;
}
.is-focused .choices__inner {
    border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}
.choices__input { background-color: transparent; font-size: 1em; padding: 0; margin-bottom: 0; }
.choices__list--dropdown { border-radius: var(--border-radius); border: 1px solid var(--border-color); }
.choices__placeholder { opacity: 0.7; }
.choices__item--choice { padding: 8px 12px; }

/* --- Responsive --- */
@media (max-width: 768px) {
    .header-top { flex-direction: column; gap: 15px; }
    .main-nav { flex-wrap: wrap; justify-content: center; }
    .auth-form-container { padding: 25px; margin: 20px auto; }
}