@import url('https://fonts.googleapis.com/css2?family=Bai+Jamjuree:wght@400;500;600;700&display=swap');

* {
    box-sizing: border-box;
}

/* ================= GENERAL ================= */
body {
    margin: 0;
    padding: 0;
    font-family: 'Bai Jamjuree', Arial, Helvetica, sans-serif;
    color: #202124;
}

/* ================= REGISTER / ADMIN ================= */
.register-body,
.admin-body {
    min-height: 100vh;
    background: #eef3fb;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.form-card,
.admin-card {
    background: white;
    border-radius: 18px;
    padding: 0px 35px 25px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.12);
    width: 100%;
    max-width: 520px;
}

.form-card h1,
.admin-card h1 {
    margin: 0 0 8px;
    color: #0b55b7;
}

.form-card p {
    margin-top: 0;
    color: #64748b;
    text-align: center;
}

.form-card label {
    display: block;
    margin-top: 14px;
    font-weight: 700;
}

.form-card input {
    width: 100%;
    height: 46px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 0 12px;
    margin-top: 6px;
    font-size: 16px;
}

.form-card button {
    width: 100%;
    height: 48px;
    margin-top: 22px;
    border: 0;
    border-radius: 10px;
    background: #b22023;
    color: white;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
}

.error {
    background: #fee2e2;
    color: #991b1b;
    padding: 10px;
    border-radius: 8px;
    margin: 10px 0;
}

/* ================= GOOGLE SEARCH ================= */
.google-body {
    min-height: 100vh;
    background: #f1f5fb;
    display: flex;
    justify-content: center;
    padding-top: 40px;
}

.google-wrap {
    width: min(92%, 850px);
    text-align: center;
}

/* Google Logo Colors */
.logo {
    font-size: 78px;
    font-weight: 700;
    letter-spacing: -3px;
    margin-bottom: 18px;
}

.g-blue { color: #4285F4; }
.g-red { color: #EA4335; }
.g-yellow { color: #FBBC05; }
.g-green { color: #34A853; }

.search-box {
    height: 58px;
    background: #fff;
    border: 1px solid #dfe1e5;
    border-radius: 10px;
    display: flex;
    align-items: center;
    padding: 0 18px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.24);
}

.search-box input {
    flex: 1;
    border: 0;
    outline: 0;
    font-size: 18px;
    padding: 0 14px;
    background: transparent;
}

.icon {
    font-size: 28px;
    color: #5f6368;
    transform: rotate(-20deg);
}

.mic {
    font-size: 21px;
    margin-right: 10px;
}

.search-btn {
    border: 0;
    background: white;
    color: #008b8b;
    font-size: 21px;
    cursor: pointer;
    border-left: 2px solid #15b8c7;
    padding-left: 13px;
}

/* Suggestions */
.suggestions {
    display: none;
    margin: 14px auto 0;
    width: 90%;
    background: white;
    border: 1px solid #dfe1e5;
    border-radius: 0 0 30px 30px;
    text-align: left;
    padding: 12px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.suggestions div {
    font-size: 17px;
    padding: 11px 24px;
    cursor: pointer;
}

.suggestions div:hover {
    background: #f1f3f4;
}

.suggestions span {
    margin-left: 22px;
}

/* ================= RESULT PAGE (FIXED PERFECT) ================= */
.result-body {
    background: #eaf0f8;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.result-page {
    flex: 1;
    padding-top: 10px;
}

.result-img {
    display: block;
    width: 95%;
    max-width: 1402px;
    margin: 0 auto;
    border-radius: 14px;
}

/* ================= FOOTER (PROPER FIXED LOOK) ================= */
.result-footer {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    padding: 10px 20px;
}

.footer-logo {
    width: 120px;
    height: auto;
    opacity: 0.9;
    transition: 0.3s;
}

.footer-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* ================= TABLE ================= */
.admin-card {
    max-width: 1100px;
    overflow: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 18px;
}

th,
td {
    border: 1px solid #dbe3ef;
    padding: 10px;
}

th {
    background: #0b55b7;
    color: white;
}

tr:nth-child(even) {
    background: #f8fafc;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 600px) {
    .logo {
        font-size: 54px;
    }

    .search-box input {
        font-size: 14px;
    }

    .suggestions div {
        font-size: 14px;
    }

    .footer-logo {
        width: 90px;
    }
}