/* General Body Styling */
body {
    font-family: 'Roboto', 'Noto Sans KR', sans-serif; /* Professional, clean fonts */
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f7f6; /* Light, calming background */
    color: #333; /* Dark gray for good readability */
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Full viewport height */
}

.container {
    max-width: 1000px;
    margin: 20px auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Header Styling */
header {
    background-color: #1a2b3c; /* Deeper, more formal header */
    color: #ffffff;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header h1 {
    margin: 0;
    font-size: 2.2em;
    font-weight: 500;
}

/* Main Content Layout */
main {
    flex-grow: 1; /* Allows main content to expand */
    padding: 20px;
    max-width: 1000px;
    margin: 20px auto; /* Center the main content */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

main.main-centered {
    min-height: calc(100vh - 120px); /* Adjust based on header/footer height */
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 0 auto;
    padding: 20px;
}

/* Section Styling */
section {
    background-color: #ffffff;
    padding: 30px;
    margin-bottom: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    width: 100%; /* Ensure sections take full width within main */
    max-width: 800px; /* Limit width for readability */
}

.input-section {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 350px; /* Make input section more prominent */
    padding: 40px;
    background: linear-gradient(135deg, #e6eff7 0%, #d4e0eb 100%); /* Subtle, neutral blue/gray gradient */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.input-section h2 {
    color: #1a2b3c; /* Deeper header color for main sections */
    font-size: 2.5em;
    margin-bottom: 10px;
    border-bottom: none;
    padding-bottom: 0;
}

.input-section .subtitle {
    font-size: 1.2em;
    color: #555;
    margin-bottom: 30px;
}

.input-container {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
}

/* Input Section */
.input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    justify-content: center; /* Center input group */
}

.input-group input[type="text"] {
    flex-grow: 1;
    padding: 15px 20px;
    border: 1px solid #0056b3; /* Softer border, professional blue */
    border-radius: 30px; /* Rounded corners */
    font-size: 1.1em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    max-width: 400px; /* Limit input width */
}

.input-group input[type="text"]::placeholder {
    color: #a0a0a0;
}

.input-group input[type="text"]:focus {
    border-color: #0056b3; /* Focus highlight, professional blue */
    box-shadow: 0 0 8px rgba(0, 86, 179, 0.4); /* Matching shadow */
    outline: none;
}

.input-group button {
    padding: 15px 30px;
    background-color: #0056b3; /* Professional blue button */
    color: white;
    border: none;
    border-radius: 30px; /* Rounded corners */
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    white-space: nowrap; /* Prevent button text from wrapping */
}

.input-group button:hover {
    background-color: #004085; /* Darker professional blue on hover */
    transform: translateY(-2px) scale(1.02); /* Lift and slightly enlarge */
    box-shadow: 0 6px 15px rgba(0, 86, 179, 0.3); /* Matching shadow */
}

.guidance-text {
    font-size: 0.95em;
    color: #666;
    text-align: center;
    margin-top: 15px;
}

/* Report Section */
.report-section {
    margin-top: 40px; /* More space after input section */
}

.report-section h2 {
    color: #2c3e50;
    font-size: 1.8em;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
    text-align: left; /* Align report section header left */
}

.report-content {
    background-color: #fdfdfd;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 25px;
    min-height: 250px; /* Ensure report area has some visible height */
    overflow-x: auto;
    white-space: pre-wrap; /* Preserve formatting and wrap text */
    text-align: left; /* Align report content left */
}

.report-content p {
    margin: 0 0 10px 0;
    color: #555;
}

.placeholder-text {
    color: #888;
    font-style: italic;
    text-align: center;
    padding-top: 50px; /* Center placeholder text vertically */
}

/* Footer Styling */
footer {
    background-color: #282c34; /* Softer footer background */
    color: #ffffff;
    text-align: center;
    padding: 15px 0;
    font-size: 0.9em;
    margin-top: auto; /* Push footer to the bottom */
}

/* Responsive Design Considerations (Basic) */
@media (max-width: 768px) {
    .input-group {
        flex-direction: column;
    }

    .input-group input[type="text"] {
        max-width: 100%; /* Allow input to take full width */
    }

    .input-group button {
        width: 100%;
        margin-top: 10px;
    }

    main.main-centered {
        padding: 15px;
    }

    .input-section {
        padding: 30px 20px;
        min-height: 300px;
    }

    .input-section h2 {
        font-size: 2em;
    }

    .input-section .subtitle {
        font-size: 1em;
    }

    section {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8em;
    }

    .input-section h2 {
        font-size: 1.8em;
    }

    .input-section .subtitle {
        font-size: 0.9em;
    }

    .guidance-text {
        font-size: 0.85em;
    }

    section h2 {
        font-size: 1.5em;
    }
}
