/* AutoCode Generated CSS for project 1751539462094 */

/* Basic Reset and Body Styling */
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Win11-like font stack */
    background-color: #f3f3f3; /* Light background */
    color: #333;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Align to top */
    min-height: 100vh;
    box-sizing: border-box; /* Include padding in height */
    overflow-y: auto; /* Allow scrolling if content overflows */
    transition: background-color 0.3s ease, color 0.3s ease; /* Smooth theme transition */
}

/* Main Container */
.container {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px; /* Rounded corners */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    width: 100%;
    max-width: 450px; /* Max width for a focused app */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 20px; /* Space between sections */
    transition: background-color 0.3s ease, box-shadow 0.3s ease; /* Smooth theme transition */
}

/* Header */
h1 {
    text-align: center;
    color: #0078d4; /* A common Win11 accent color */
    margin-top: 0;
    margin-bottom: 0; /* Adjusted margin as container uses gap */
    font-size: 1.8em;
    font-weight: 600; /* Semi-bold */
    transition: color 0.3s ease; /* Smooth theme transition */
}

/* Input Area Layout (Matches HTML class .input-section) */
.input-section {
    display: flex;
    flex-direction: column; /* Stack label, input, button vertically */
    gap: 10px; /* Space between elements */
}

.input-section label {
    font-size: 1em;
    color: #555;
    margin-bottom: 5px; /* Space between label and input */
    display: block; /* Ensure label takes its own line */
    transition: color 0.3s ease; /* Smooth theme transition */
}

/* Suburb Input Field */
#suburb-input {
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 6px; /* Rounded corners */
    font-size: 1em;
    outline: none; /* Remove default outline */
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out, background-color 0.3s ease, color 0.3s ease;
    width: 100%; /* Make input take full width */
    box-sizing: border-box; /* Include padding and border in width */
    background-color: #fff;
    color: #333;
}

#suburb-input::placeholder {
    color: #999;
    transition: color 0.3s ease; /* Smooth theme transition */
}

#suburb-input:focus {
    border-color: #0078d4; /* Accent color on focus */
    box-shadow: 0 0 0 2px rgba(0, 120, 212, 0.2); /* Subtle glow */
}

/* Predict Rain Button (Matches HTML ID #predict-button) */
#predict-button {
    padding: 10px 20px;
    background-color: #0078d4; /* Accent color */
    color: #fff;
    border: none;
    border-radius: 6px; /* Rounded corners */
    font-size: 1em;
    cursor: pointer;
    outline: none;
    transition: background-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    width: 100%; /* Make button take full width */
    box-sizing: border-box;
    font-weight: 600; /* Semi-bold */
}

#predict-button:hover {
    background-color: #005a9e; /* Darker shade on hover */
}

#predict-button:active {
    background-color: #004073; /* Even darker on active */
}

#predict-button:focus {
     box-shadow: 0 0 0 2px rgba(0, 120, 212, 0.3); /* Subtle glow on focus */
}

#predict-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Result Display Area Container (Matches HTML ID #result-section) */
#result-section {
    padding: 15px;
    background-color: #e9e9e9; /* Light grey background */
    border: 1px solid #ddd;
    border-radius: 8px; /* Rounded corners */
    min-height: 60px; /* Give it some minimum height */
    display: flex; /* Use flexbox for centering/alignment */
    align-items: center; /* Vertically center content */
    justify-content: center; /* Horizontally center content initially */
    text-align: center; /* Ensure text aligns center */
    word-break: break-word; /* Prevent long text overflow */
    transition: border-color 0.2s ease-in-out, background-color 0.2s ease-in-out;
    /* Ensure it's visible by default or when states are applied */
    /* JS will manage display property, but CSS defines appearance */
}

/* Rain Prediction Text (Matches HTML ID #prediction-text) */
#prediction-text {
    margin: 0; /* Remove default paragraph margin */
    font-size: 1.1em;
    color: #1a1a1a; /* Darker text for readability */
    /* Initial state color - will be overridden by state classes */
    transition: color 0.3s ease; /* Smooth theme transition */
}

/* Placeholder/Initial state for result area text */
/* Apply to the text element itself when empty */
#prediction-text:empty::before {
    content: 'Enter a suburb above to see the next rain prediction.';
    color: #666;
    font-style: italic;
    font-size: 0.9em;
}

/* State Styles for Prediction Text (Applied to #prediction-text) */
#prediction-text.loading {
    color: #0078d4; /* Accent color for loading */
    font-style: italic;
}

#prediction-text.success {
    color: #107c10; /* Green for success */
    font-weight: 600; /* Make success text stand out */
}

#prediction-text.error {
    color: #c0392b; /* Red for errors */
    font-weight: 600;
}

#prediction-text.info {
    color: #555; /* Default or slightly subdued */
    font-style: italic;
}

/* State Styles for Result Area Container (Applied to #result-section) */
#result-section.error {
    border-color: #c0392b; /* Red border for errors */
    background-color: #fdedec; /* Light red background */
}

#result-section.success {
     border-color: #107c10; /* Green border for success */
     background-color: #e8f5e9; /* Light green background */
}

/* Default/Info state for container - matches the base #result-section style */
#result-section.info,
#result-section:not([class]) { /* Apply if no state class is present */
    border-color: #ddd; /* Default border */
    background-color: #e9e9e9; /* Default background */
}

#result-section.loading {
    border-color: #0078d4; /* Accent border for loading */
    background-color: #e1f5fe; /* Light accent background */
}

/* Hide the separate loading/error divs as they are not used by script.js anymore */
#loading-indicator,
#error-message {
    display: none !important;
}


/* --- Dark Mode Styles --- */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #2b2b2b; /* Dark background */
        color: #eee; /* Light text */
    }

    .container {
        background-color: #3a3a3a; /* Darker container background */
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); /* Adjusted shadow for dark mode */
    }

    h1 {
        color: #00aaff; /* Brighter accent color for dark mode */
    }

    .input-section label {
        color: #ccc; /* Lighter label text */
    }

    #suburb-input {
        background-color: #4a4a4a; /* Darker input background */
        color: #eee; /* Light input text */
        border-color: #666; /* Lighter border */
    }

    #suburb-input::placeholder {
        color: #aaa; /* Lighter placeholder text */
    }

    #suburb-input:focus {
        border-color: #00aaff; /* Accent color on focus */
        box-shadow: 0 0 0 2px rgba(0, 170, 255, 0.3); /* Subtle glow */
    }

    #predict-button {
        background-color: #0078d4; /* Keep same accent or adjust */
        color: #fff;
    }

    #predict-button:hover {
        background-color: #005a9e;
    }

    #predict-button:active {
        background-color: #004073;
    }

    #predict-button:focus {
         box-shadow: 0 0 0 2px rgba(0, 120, 212, 0.4);
    }

    #predict-button:disabled {
        background-color: #555;
        color: #bbb;
    }

    #result-section {
        background-color: #4a4a4a; /* Darker background */
        border-color: #666; /* Lighter border */
    }

    #prediction-text {
        color: #eee; /* Light text for readability */
    }

    #prediction-text:empty::before {
        content: 'Enter a suburb above to see the next rain prediction.';
        color: #aaa; /* Lighter placeholder text */
    }

    /* State Styles for Prediction Text (Applied to #prediction-text) */
    #prediction-text.loading {
        color: #00aaff; /* Accent color for loading */
    }

    #prediction-text.success {
        color: #5cb85c; /* Accessible green for dark mode */
    }

    #prediction-text.error {
        color: #d9534f; /* Accessible red for dark mode */
    }

    #prediction-text.info {
        color: #bbb; /* Slightly subdued light text */
    }

    /* State Styles for Result Area Container (Applied to #result-section) */
    #result-section.error {
        border-color: #d9534f; /* Red border for errors */
        background-color: #5a3a3a; /* Dark red background */
    }

    #result-section.success {
         border-color: #5cb85c; /* Green border for success */
         background-color: #3f5a3f; /* Dark green background */
    }

    /* Default/Info state for container - matches the base #result-section style */
    #result-section.info,
    #result-section:not([class]) {
        border-color: #666; /* Default border */
        background-color: #4a4a4a; /* Default background */
    }

    #result-section.loading {
        border-color: #00aaff; /* Accent border for loading */
        background-color: #3a4a5a; /* Dark accent background */
    }
}