﻿/* ===== Global  ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    background-color: #f0f0f0; /* Soft background behind app shell */
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ===== App shell ===== */

.app-shell {
    max-width: 600px; /* Good width for mobile/tablet focus */
    width: 90%; /* Responsive on small screens */
    margin: 20px auto;
    min-height: 95vh;
    border-radius: 20px;
    border: 1px solid #ddd;
    overflow: hidden; /* Respect rounded corners */
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
}

.page-header {
    text-align: center;
    margin-bottom: 1rem;
}

    .page-header .line1 {
        font-size: 2rem; /* Larger title */
        font-weight: bold;
        text-align: center;
        margin-bottom: 0.3rem;
        display: block; /* Forces its own line */
    }

    .page-header .line2 {
        font-size: 1.3rem; /* Subtitle */
        display: block; /* Forces its own line */
    }
    .page-header .line3 {
        font-size: 1rem; /* Subtitle */
        text-align: left;
        display: block; /* Forces its own line */
    }
    .page-header .line4 {
        font-size: 1rem; /* Subtitle */
        text-align: left;
        color:red;
        display: block; /* Forces its own line */
    }

/* ===== Shared bar styles (header + footer) ===== */

.app-header,
.app-footer {
    display: flex;
    align-items: center;
    justify-content: center; /* Start centered, use gap for spacing */
    gap: 20px; /* Space between icons */
    padding: 0.4rem 0.5rem;
    background-color: #26a9f1;
    border-top: 1px solid #e0e0e0;
    flex-wrap: nowrap; /* Force ONE line */
}

/* If you ever want footer different, override here */
.app-footer {
    border-top: 1px solid #e0e0e0;
    justify-content: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 10px;
}

/* ===== Icon containers ===== */

.header-icons,
.footer-icon {
    background: transparent;
    border: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ===== Icon button + tooltip ===== */

.icon-button {
    position: relative;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

    .icon-button img {
        width: 75px;
        height: 75px;
        border-radius: 50%;
        display: block;
    }

    .icon-button span {
        font-weight: bold;
    }

    .icon-button .tooltip {
        visibility: hidden;
        opacity: 0;
        background-color: black;
        color: white;
        text-align: center;
        padding: 4px 10px;
        border-radius: 6px;
        position: absolute;
        bottom: -35px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 0.75rem;
        white-space: nowrap;
        transition: opacity 0.2s ease-in-out;
        z-index: 200;
    }

    .icon-button:hover .tooltip {
        visibility: visible;
        opacity: 1;
    }
/* ===== Icon button + tooltip ===== */

.icon-button2 {
    position: relative;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

    .icon-button2 img {
        width: 45px;
        height: 45px;
        border-radius: 50%;
        display: block;
    }

    .icon-button2 span {
        font-weight: bold;
        display: none;
    }

    .icon-button2 .tooltip {
        visibility: hidden;
        opacity: 0;
        background-color: black;
        color: white;
        text-align: center;
        padding: 4px 10px;
        border-radius: 6px;
        position: absolute;
        bottom: -35px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 0.75rem;
        white-space: nowrap;
        transition: opacity 0.2s ease-in-out;
        z-index: 200;
    }

    .icon-button2:hover .tooltip {
        visibility: visible;
        opacity: 1;
    }

/* ===== Main content ===== */

.app-content {
    flex: 1;
    padding: 0.75rem;
    overflow-y: auto;
}

/* ===== Page-level helpers ===== */

.page-container {
    max-width: 600px;
    margin: auto;
    padding: 20px;
    border-radius: 18px;
}

.page-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.page-textbox {
    width: 100%;
    height: 120px;
    border-radius: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    resize: vertical;
}
.page-textbox1Line {
    width: 100%;
    height: 20px;
    border-radius: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    resize: vertical;
}
/* ===== Checkboxes ===== */

.checkbox-section {
    margin: 20px 0;
}

.checkbox-item {
    display: block;
    margin-bottom: 8px;
}

/* ===== Dropdown (replacing checkboxes) ===== */

.dropdown-section {
    margin: 20px 0;
}

.dropdown {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border-radius: 10px;
    border: 1px solid #ccc;
    background-color: #ffffff;
    cursor: pointer;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

    .dropdown:hover {
        border-color: #4a8bf5;
        transition: border-color 0.2s ease-in-out;
    }

    .dropdown:focus {
        outline: none;
        border-color: #4a8bf5;
        box-shadow: 0 0 0 3px rgba(74, 139, 245, 0.1);
    }

    .dropdown option {
        padding: 8px;
    }

/* ===== Buttons (Inquire / Reset) ===== */

.button-row {
    display: flex;
    gap: 15px; /* space between buttons */
}

.btn-submit,
.btn-reset {
    padding: 10px 18px;
    border-radius: 10px;
    border: none;
    color: white;
    cursor: pointer;
}

.btn-submit {
    background-color: #4a8bf5;
}

.btn-reset {
    background-color: #aaaaaa;
}

.select-group {
    margin: 1rem auto 1.5rem auto;
    max-width: 400px;
    text-align: left;
}

    .select-group label {
        display: block;
        margin-bottom: 0.4rem;
        font-weight: 600;
    }

.delivery-select {
    width: 100%;
    padding: 0.6rem;
    font-size: 1rem;
    border-radius: 8px;
    border: 1px solid #ccc;
}

.code-input {
    display: block; /* Forces element to be centered */
    margin: 0 auto 1.5rem auto; /* Center horizontally */

    width: 80%; /* Bigger width, responsive */
    max-width: 500px; /* Prevents over-expansion */

    padding: 1rem; /* Bigger padding for better readability */
    font-size: 1.4rem; /* Larger text */

    border: 2px solid #ccc;
    border-radius: 10px;
    text-align: center; /* Centers text inside the box */
}

.radio-group {
    max-width: 400px;
    margin: 1rem auto 1.5rem auto;
    text-align: left;
}

.radio-title {
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.radio-item {
    display: flex;
    align-items: center;
    margin: 0.35rem 0;
    font-size: 1rem;
}

    .radio-item input[type="radio"] {
        margin-right: 0.5rem;
        transform: scale(1.2); /* Makes radio buttons larger */
    }

.inquiry-submission {
    margin: 20px 0;
    padding: 15px;
    border-radius: 8px;
    background-color: #e0f7fa;
    border-left: 5px solid #00796b;
}

.inquiry-submission h3 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    color: #00796b;
}

.inquiry-submission p {
    margin: 5px 0;
    font-size: 1rem;
    color: #333;
}

.inquiry-submission .alliance {
    font-weight: bold;
    color: #00796b;
}

/* ===== Form Groups ===== */

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 1rem;
}

.input-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

    .input-group input {
        flex: 1;
        padding: 10px;
        border-radius: 10px;
        border: 1px solid #ccc;
        font-size: 1rem;
    }

    .input-group button {
        padding: 10px 15px;
        white-space: nowrap;
    }

/* ===== Thoughts List ===== */

.thoughts-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.thought-item {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.thought-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}
.thought-header_Observe {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    text-underline-position:under;
}

.thought-group {
    font-weight: 600;
    color: #4a8bf5;
    font-size: 0.9rem;
    background-color: #e3f2fd;
    padding: 4px 8px;
    border-radius: 5px;
}

.thought-datetime {
    font-size: 0.85rem;
    color: #666;
}

.thought-content {
    margin: 10px 0;
    line-height: 1.5;
    color: #333;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.thought-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.btn-delete {
    background-color: #ff6b6b;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s ease-in-out;
}

    .btn-delete:hover:not(:disabled) {
        background-color: #ff5252;
    }

    .btn-delete:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

.btn-submit:disabled,
.btn-reset:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.dropdown:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===== Observation Card Styles ===== */

.observation-card {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

.observation-section {
    margin-bottom: 15px;
}

.observation-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
    padding-bottom: 5px;
    border-bottom: 2px solid #4a8bf5;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}

.observation-content {
    font-size: 1rem;
    color: #555;
    margin: 0;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.observation-datetime {
    font-size: 0.85rem;
    color: #999;
    margin: 10px 0;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.observation-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.observation-actions .btn {
    flex: 1;
    font-size: 0.9rem;
}

/* ===== Support Page Styles ===== */

.support-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.tab-button {
    padding: 10px 20px;
    border: 2px solid #ccc;
    border-radius: 10px;
    background-color: #f5f5f5;
    color: #333;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.tab-button:hover {
    border-color: #26a9f1;
    background-color: #e3f2fd;
}

.tab-button.tab-active {
    background-color: #26a9f1;
    color: white;
    border-color: #26a9f1;
}

.tab-content {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ===== Support Page - Expandable Sections ===== */

.expandable-section {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    background-color: #fff;
}

.section-header {
    width: 100%;
    padding: 15px;
    border: none;
    background-color: #f5f5f5;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    text-align: left;
    transition: background-color 0.2s ease-in-out;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.section-header:hover {
    background-color: #e3f2fd;
}

.section-header.section-expanded {
    background-color: #26a9f1;
    color: white;
}

.section-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color: #ddd;
    color: #333;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.section-header.section-expanded .section-toggle {
    background-color: white;
    color: #26a9f1;
}

.section-content {
    padding: 20px;
    background-color: #fafafa;
    animation: slideDown 0.3s ease-in-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 2000px;
    }
}

/* ===== Chat Container ===== */

.chat-container {
    display: flex;
    flex-direction: column;
    height: 500px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #fafafa;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-message {
    display: flex;
    flex-direction: column;
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 10px;
    word-wrap: break-word;
}

.user-message {
    align-self: flex-end;
    background-color: #26a9f1;
    color: white;
}

.support-message {
    align-self: flex-start;
    background-color: #e0e0e0;
    color: #333;
}

.message-content {
    margin-bottom: 5px;
    line-height: 1.4;
}

.message-time {
    font-size: 0.75rem;
    opacity: 0.7;
}

.chat-input-area {
    display: flex;
    gap: 10px;
    padding: 15px;
    border-top: 1px solid #ddd;
    background-color: #fff;
}

.chat-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 1rem;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.chat-input:focus {
    outline: none;
    border-color: #26a9f1;
    box-shadow: 0 0 0 3px rgba(38, 169, 241, 0.1);
}

.chat-input:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.6;
}

/* ===== FAQ Styles ===== */

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    background-color: #fff;
}

.faq-question {
    width: 100%;
    padding: 15px;
    border: none;
    background-color: #f5f5f5;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    text-align: left;
    transition: background-color 0.2s ease-in-out;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.faq-question:hover {
    background-color: #e3f2fd;
}

.faq-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: #26a9f1;
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.faq-answer {
    padding: 20px 15px;
    border-top: 1px solid #eee;
    background-color: #fafafa;
    line-height: 1.6;
    color: #555;
    animation: slideDown 0.3s ease-in-out;
}

/* ===== Terms Styles ===== */

.terms-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.terms-section {
    padding: 15px;
    border-left: 4px solid #26a9f1;
    background-color: #f9f9f9;
    border-radius: 5px;
}

.terms-section h3 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    color: #333;
    font-weight: 600;
}

.terms-section p {
    margin: 0 0 10px 0;
    line-height: 1.6;
    color: #555;
}

.terms-section ul {
    margin: 10px 0 0 20px;
    padding: 0;
    color: #555;
    line-height: 1.6;
}

.terms-section li {
    margin-bottom: 8px;
}

/* ===== About Styles ===== */

.about-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-section {
    padding: 20px;
    border-radius: 10px;
    background-color: #f9f9f9;
    border: 1px solid #eee;
}

.about-section h3 {
    margin: 0 0 15px 0;
    font-size: 1.2rem;
    color: #26a9f1;
    font-weight: 600;
}

.about-section p {
    margin: 0 0 10px 0;
    line-height: 1.6;
    color: #555;
}

.about-section ul {
    margin: 10px 0 0 20px;
    padding: 0;
    color: #555;
    line-height: 1.8;
}

.about-section li {
    margin-bottom: 10px;
}

.about-section strong {
    color: #333;
}
