
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --background-color: #ecf0f1;
    --text-color: #34495e;
    --white: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

body.dark-mode {
    --primary-color: #ecf0f1;
    --secondary-color: #3498db;
    --background-color: #2c3e50;
    --text-color: #ecf0f1;
    --white: #34495e;
    --shadow-color: rgba(0, 0, 0, 0.3);
}

body {
    font-family: 'Helvetica Neue', sans-serif;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    background-color: var(--background-color);
    color: var(--text-color);
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239C92AC' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    transition: background-color 0.3s ease, color 0.3s ease;
    padding-top: 60px; /* Space for fixed header */
}

/* Header & Nav */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: var(--white);
    box-shadow: 0 2px 10px var(--shadow-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;
    z-index: 1000;
}

.logo {
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.main-header nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.main-header nav a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
}

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

#theme-toggle {
    position: static; /* Reset absolute positioning */
    top: auto;
    right: auto;
}

.container {
    text-align: center;
    background-color: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow-color);
    max-width: 500px;
    width: 90%;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 30px;
}

/* Content Sections */
.content-section {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.text-content {
    text-align: left;
    max-width: 600px; /* Slightly wider for text */
}

.text-content h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
}

.text-content h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.text-content p {
    line-height: 1.6;
    margin-bottom: 15px;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

@media (min-width: 600px) {
    .info-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.info-card {
    background: rgba(0,0,0,0.02);
    padding: 15px;
    border-radius: 10px;
}

/* Footer */
.main-footer {
    width: 100%;
    background-color: var(--primary-color);
    color: #fff;
    padding: 30px 20px;
    text-align: center;
    margin-top: auto;
    box-sizing: border-box;
}

.footer-links {
    margin-bottom: 15px;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
    font-size: 0.9rem;
}

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

.copyright {
    font-size: 0.8rem;
    opacity: 0.8;
}

.disclaimer {
    font-size: 0.75rem;
    opacity: 0.6;
    margin-top: 5px;
}

h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 300;
}

.subtitle {
    margin-bottom: 30px;
    font-size: 1.1rem;
    color: var(--text-color);
    opacity: 0.8;
}

.upload-area {
    border: 2px dashed var(--secondary-color);
    border-radius: 15px;
    padding: 40px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-bottom: 20px;
}

.upload-area:hover {
    background-color: rgba(52, 152, 219, 0.05);
}

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

.upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.preview-container {
    margin: 20px 0;
}

#image-preview {
    max-width: 100%;
    max-height: 300px;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-color);
}

#loading-spinner {
    margin-top: 15px;
    font-weight: bold;
    color: var(--secondary-color);
}

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

.result-message h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.dog-result { color: #f1c40f; }
.cat-result { color: #3498db; }

.bar-container {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.bar-label {
    width: 60px;
    text-align: left;
    font-weight: bold;
}

.bar-wrapper {
    flex-grow: 1;
    background-color: #eee;
    height: 20px;
    border-radius: 10px;
    margin: 0 10px;
    overflow: hidden;
}

.bar {
    height: 100%;
    transition: width 0.5s ease-out;
}

.percent-label {
    width: 50px;
    text-align: right;
}

.inquiry-container {
    margin-top: 40px;
    padding: 30px;
}

.comments-container {
    margin-top: 40px;
    padding: 30px;
}

.inquiry-container h2 {
    margin-bottom: 20px;
    font-weight: 300;
}

.form-group {
    margin-bottom: 15px;
}

#inquiry-form input,
#inquiry-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    background-color: var(--white);
    color: var(--text-color);
    box-sizing: border-box;
}

#inquiry-form textarea {
    height: 100px;
    resize: vertical;
}

#submit-btn {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    transition: opacity 0.3s ease;
}

#submit-btn:hover {
    opacity: 0.8;
}

body {
    display: flex;
    flex-direction: column;
    padding: 40px 0;
}
