/* --- Dark Theme CSS for a Sleek Look --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    /* Dark background */
    background-color: #1e1e2f; 
    /* Light text color */
    color: #e0e0e0; 
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container {
    max-width: 900px;
    width: 100%;
    /* Darker container background */
    background: #28283d; 
    padding: 30px;
    border-radius: 12px;
    /* Subtle glowing box shadow */
    box-shadow: 0 0 20px rgba(30, 136, 229, 0.2); 
}

h1 {
    /* Glowing vibrant blue */
    color: #4a90e2; 
    text-align: center;
    margin-bottom: 30px;
    font-weight: 300;
    text-shadow: 0 0 10px rgba(74, 144, 226, 0.5);
}

.controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px; /* Reduced space before moving input group */
}

.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

.btn-generate {
    /* Blue color for generate */
    background-color: #1e88e5;
    color: white;
    font-weight: bold;
}

.btn-generate:hover {
    background-color: #1565c0;
    transform: translateY(-1px);
}

.btn-clear {
    /* Red color for clear */
    background-color: #e53935;
    color: white;
}

.btn-clear:hover {
    background-color: #c62828;
    transform: translateY(-1px);
}

/* New styles for centering the input group */
.input-group {
    display: flex;
    align-items: center;
    justify-content: center; /* Center the whole group */
    gap: 10px;
    margin-bottom: 40px; /* Added margin to push gallery down */
}
.input-group label {
    color: #bbbbbb; /* Lighter label color */
}
.input-group input {
    padding: 10px;
    /* Dark input background and light text */
    background-color: #38384f; 
    color: #e0e0e0;
    border: 1px solid #4a4a6b;
    border-radius: 8px;
    width: 80px;
    text-align: center;
    font-size: 16px;
    /* Focus outline to match the theme */
    outline: none;
    transition: border-color 0.3s ease;
}
.input-group input:focus {
    border-color: #4a90e2;
}


.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    justify-content: center;
}

.image-item {
    text-align: center;
    background: #eee; /* Placeholder background */
    min-height: 200px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.input-group {
            display: flex;
            align-items: center;
            align-content: center;
            text-align: center;
            gap: 10px;
        }
        .input-group input {
            padding: 10px;
            border: 1px solid #ccc;
            border-radius: 8px;
            width: 80px;
            text-align: center;
            font-size: 16px;
        }