/*B"H*/
/* Basic Reset & Defaults */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* --- BETA TAG --- */
.beta-tag {
    position: absolute;
    top: 66px;
    right: 10px;
    background-color: #007bff;
    color: white;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 4px;
    z-index: 10;
    letter-spacing: 0.5px;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    background-color: #ffffff;
    color: #333;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 20px 0;
}

.container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
    display: flex;
    margin-top: 55px;
    flex-direction: column;
    align-items: center;
}

.logo-container {
    margin-top: 10px; /* Adjusted from previous */
    margin-bottom: 30px;
}
.logo-container svg {
    width: 60px; /* Original icon size */
    height: auto;
    fill: #040404;
}

.title-main {
    font-size: 16px;
    font-weight: normal;
    color: #555;
    margin-bottom: 5px;
    text-align: center;
}

.title-sub {
    font-size: 24px;
    font-weight: bold;
    color: #000000;
    margin-bottom: 30px;
    text-align: center;
}

/* Search Form Styles */
.search-form {
    display: flex;
    /* align-items: center; Changed for textarea multi-line */
    align-items: flex-end; /* Align button to bottom of textarea */
    background-color: #000000;
    border-radius: 15px;
    padding: 10px 12px 10px 22px;
    margin-bottom: 30px; /* Space before example questions or results */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.search-form textarea { /* Changed from input[type="text"] */
    flex-grow: 1;
    border: none;
    background-color: transparent;
    color: #e0e0e0;
    font-size: 16px;
    outline: none;
    font-family: sans-serif;
    resize: none; /* Disable manual resize */
    overflow-y: hidden; /* Hide scrollbar, height will be managed by JS */
    line-height: 1.4; /* Adjust for better spacing in multi-line */
    min-height: 30px; /* Approx height for a single line (font-size * line-height) */
    padding-top: 1px; /* Minor adjustment for vertical alignment with button */
    padding-bottom: 1px;/* Minor adjustment for vertical alignment with button */
}
.search-form textarea::placeholder { /* Changed */
    color: #888888;
}


.search-form button {
    background-color: #ffffff;
    border: none;
    border-radius: 20%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-left: 10px;
    padding: 0;
}
.search-form button svg {
    width: 20px;
    height: 20px;
    fill: #000000;
}

.search-form button.xBtn svg {
    
    fill: #ffffff;
}

.search-form button.xBtn {
    background-color: #272727;
}
/* Example Questions and How-to-use Link (Initial View) */
.initial-content {
    width: 100%;
}

.example-questions {
    list-style: none;
    padding: 0;
    text-align: left;
    width: 100%;
    margin-bottom: 30px; /* Space before "how to use" */
}

.example-questions li:Hover {
    background-color: #eaeaea;
    border-radius: 15px;
}
.example-questions li {
    padding: 15px;
    border-bottom: 1px solid #eeeeee;
    cursor: pointer;
    color: #444;
    font-size: 15px;
}
.example-questions li:hover {
    color: #000;
}
.example-questions li:last-child {
    border-bottom: none;
}

.how-to-use {
    margin-top: 10px; /* Adjusted from original for overall balance */
    font-size: 14px;
    font-weight: 500;
    color: #027bff;
    text-decoration: none;
    display: block;
    text-align: center;
}
.how-to-use:hover {
    text-decoration: underline;
}


/* Results Area Styles */
.results-list {
    width: 100%;
    
    position: relative;
    min-height: 300px;
    margin-top: 0; /* Results appear directly after search bar */
}

.result-card {
    background-color: #f9f9f9;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.result-card h3 {
    font-size: 16px;
    font-weight: bold;
    color: #222;
    margin-bottom: 8px;
}

.result-card p {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 15px;
}

.result-card .open-sicha-btn {
    background-color: #e0e0e0;
    color: #333;
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}
.result-card .open-sicha-btn:hover {
    background-color: #d0d0d0;
}

.no-results {
    text-align: center;
    color: #777;
    margin-top: 20px;
    font-size: 15px;
}

.hidden {
    display: none !important;
}

/* Desktop adjustments */
@media (min-width: 768px) {
    .container {
        padding-top: 50px;
    }
    .title-main { font-size: 18px; }
    .title-sub { font-size: 28px; }
    .search-form input[type="text"] { font-size: 18px; }
    .example-questions li { font-size: 16px; }
    .result-card h3 { font-size: 18px; }
    .result-card p { font-size: 15px; }
}


.error-container {
    text-align: center; /* Center text and inline elements */
    /* Removed box-related styles:
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 100%;
    margin: auto;
    */
}

.error-icon {
    color: #9f9f9f; /* Color for the icon */
    font-size: 50px;
    margin-bottom: 20px; /* Space below the icon */
    display: block; /* Make icon a block to ensure margin-bottom works consistently */
    margin-left: auto; /* Center the block icon */
    margin-right: auto; /* Center the block icon */
}

.error-title {
    color: #333; /* Color for the title */
    font-size: 24px;
    margin-bottom: 15px; /* Space below the title */
}

.learn-link {
    display: inline-block; /* Allows padding/margin and works with text-align center */
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
    border-bottom: 2px solid transparent;
    transition: border-bottom 0.3s ease;
    
    border-bottom-color: #007bff;
}

.learn-link:hover {
    border-bottom-color: white;
}
