@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

:root {
    --background: #05060a;
    --foreground: #f4f6ff;
    --panel: #0f111a;
    --panel-alt: #111827;
    --panel-soft: #141526;
    --border-soft: rgba(255, 255, 255, 0.12);
    --border-strong: rgba(165, 253, 50, 0.45);
    --accent: #A5FD32;
    --accent-muted: rgba(165, 253, 50, 0.4);
    --muted: #9ea6c0;
    --error: #ff6b6b;
    --shadow: 0 20px 40px rgba(0, 0, 0, 0.75);
    --glow: rgba(165, 253, 50, 0.18);
}

body {
    margin: 0;
    background: var(--background);
    color: var(--foreground);
    font-family: "Open Sans", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    min-height: 100vh;
}

* {
    font-family: 'Open Sans', sans-serif;
}

body {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    line-height: 1.6;
    position: relative;
    background-color: var(--background);
    color: var(--foreground);
}
h1, h2, h3 {
    color: #FFFFFF; /* 30% color */
    margin-top: 0;
}
textarea {
    font-size: 16px; /* iOS won't zoom if font-size is 16px or larger */
}
#connection-status {
    margin-top: 20px;
    padding: 15px;
    background-color: #2A2A28; /* Slightly lighter than the 60% color */
    border-radius: 4px;
    font-size: 1.2em;
    font-weight: bold;
    border-left: 3px solid #A5FD32; /* 10% color accent */
}
#image-container {
    margin-top: 20px;
    text-align: center;
}
#generated-image {
    max-width: 100%;
    border: 1px solid #A5FD32; /* 10% color */
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(165, 253, 50, 0.3); /* 10% color with transparency */
    display: none;
}
.target-container {
    margin-top: 20px;
    text-align: center;
    display: none;
}
.target-container img {
    max-width: 100%;
    border: 1px solid #A5FD32; /* 10% color */
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(165, 253, 50, 0.3); /* 10% color with transparency */
}
.logo-container {
    text-align: center;
    margin-bottom: 20px;
}
#phase-display {
    color: #A5FD32; /* 10% color for emphasis */
}
/* Placeholder styling for better readability on dark backgrounds */
::placeholder {
    color: rgba(255, 255, 255, 0.5); /* Semi-transparent white */
    opacity: 1; /* Firefox */
}
:-ms-input-placeholder {
    color: rgba(255, 255, 255, 0.5); /* IE 10+ */
}
::-ms-input-placeholder {
    color: rgba(255, 255, 255, 0.5); /* Edge */
}


/* General button styling */
button {
    background-color: #A5FD32; /* 10% color */
    color: #1C1C1A; /* 60% color */
    border: none;
    border-radius: 4px;
    padding: 8px 15px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s ease;
}
button:hover {
    background-color: #b8ff45; /* Slightly lighter version of the 10% color */
}
button:disabled {
    background-color: #5a8a1c; /* Darker version of the 10% color */
    cursor: not-allowed;
}

/* Input styling */
input, select, textarea {
    background-color: #1C1C1A; /* 60% color */
    color: #FFFFFF; /* 30% color */
    border: 1px solid #A5FD32; /* 10% color */
    border-radius: 4px;
    padding: 8px;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(165, 253, 50, 0.3); /* 10% color with transparency */
}

/* Link styling */
a {
    color: #A5FD32; /* 10% color */
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* Image container styling */
.image-container {
    margin-top: 20px;
    text-align: center;
}

.image-container img, #target-image {
    max-width: 100%;
    height: auto;
    border: 1px solid #A5FD32; /* 10% color */
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(165, 253, 50, 0.3); /* 10% color with transparency */
    object-fit: contain;
}

/* Container styling for consistent sections */
.section-container {
    margin: 20px 0;
    padding: 15px;
    background-color: #2A2A28; /* Slightly lighter than the 60% color */
    border-radius: 4px;
    border-left: 3px solid #A5FD32; /* 10% color accent */
}
section {
    display: none;
}

section.active {
    display: block;
}

/* Button styling */

.btn-accent {
    background: var(--accent);
    color: #05060a;
    box-shadow: 0 0 20px 5px rgba(165, 253, 50, 0.35);
}

.btn-accent:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 20px 10px rgba(165, 253, 50, 0.45);
}
