/* =========================================
   Global/Header Styles
   ========================================= */
/* Desktop Styles */
.unsent-header {
    background-color: white;
    padding: 1rem 1rem;
}

@media (min-width: 768px) {
    .unsent-header {
        padding: 1rem 1.5rem;
    }
}

.nav-link-unsent {
    text-transform: uppercase;
    color: #374151;
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.5rem;
    padding: 0 1rem;
    text-decoration: none !important;
}

.nav-link-unsent:hover {
    color: #111827;
}

.submit-btn-unsent {
    background-color: black;
    color: white;
    text-transform: uppercase;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    margin-left: 2rem;
    text-decoration: none !important;
}

.guest-btn-unsent {
    background-color: black;
    color: white;
    text-transform: uppercase;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    text-decoration: none !important;
}

.dashboard-btn-unsent {
    background-color: #f3f4f6;
    color: #111827;
    text-transform: uppercase;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    margin-right: 1rem;
    text-decoration: none !important;
}

.random-btn-unsent {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    text-transform: uppercase;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    margin-right: 0.5rem;
    text-decoration: none !important;
    transition: transform 0.2s;
}

.random-btn-unsent:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Floating Action Button */
.fab-random {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #000;
    padding: 12px 25px;
    border-radius: 50px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    text-decoration: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    animation: float 4s ease-in-out infinite;
}

.fab-random:hover {
    background: rgba(255, 255, 255, 0.85);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.15);
    color: #000;
    border-color: rgba(255, 255, 255, 0.6);
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-5px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Mobile Header */
.mobile-header {
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

.mobile-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-text {
    text-transform: uppercase;
    color: black;
    font-weight: 500;
    text-decoration: none !important;
}

.mobile-menu-btn {
    background: none;
    border: none;
    padding: 0.5rem;
}

.mobile-logo {
    width: 100%;
    text-align: center;
    padding: 0.5rem 0;
}



/* Desktop Center Navigation */
.desktop-nav-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.desktop-nav-links {
    display: flex;
    gap: 1rem;
}

/* Emotion Widget */
.emotion-widget {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    min-width: 140px;
    height: 56px;
    /* Match typical input height roughly */
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.emotion-widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.emotion-label {
    font-weight: 700;
    font-size: 14px;
    line-height: 1.2;
    text-transform: uppercase;
}

.emotion-sub {
    font-size: 11px;
    opacity: 0.9;
    text-decoration: underline;
}

/* Mobile Menu */
.mobile-menu-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: white;
    z-index: 1000;
    padding: 1rem;
    overflow-y: auto;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.mobile-menu-nav {
    padding: 1rem 0;
}

.mobile-menu-link {
    display: block;
    padding: 0.75rem 0;
    font-size: 1.1rem;
    color: #111827;
    text-decoration: none !important;
}

.mobile-submit-container {
    margin-top: 1.5rem;
    padding: 1rem 0;
}

.mobile-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: black;
    color: white;
    padding: 0.5rem;
    border-radius: 0.375rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none !important;
}

/* =========================================
   Index/Public Page Styles
   ========================================= */
body {
    margin: 0;
    padding: 0;
    background-color: #fff;
    /* White background */
    min-height: 100vh;
    overflow-x: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
}

/* Shared Admin-like Card Style for User Dashboard */
.main-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

h2 {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

.header-section {
    text-align: center;
    margin-bottom: 20px;
}

.header-gif {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 auto 20px;
}

.header-text {
    font-size: 72px;
    font-weight: 700;
    /* Bold */
    color: #000;
    /* distinct black */
    margin-bottom: 10px;
    text-transform: uppercase;
    /* Enforce uppercase like the GIF */
    letter-spacing: 1px;
    line-height: 1.2;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.typing-wrapper {
    display: inline-block;
    position: relative;
    vertical-align: bottom;
    /* Align correctly with surrounding flow */
}

.invisible-placeholder {
    visibility: hidden;
    pointer-events: none;
    /* Ensure it takes up the correct height/width */
    opacity: 0;
}

#typing-text {
    position: absolute;
    top: 0;
    left: 0;
    white-space: nowrap;
    overflow: hidden;
    /* Eliminate default margins if any, since it's a span now */
    margin: 0;
}

@media (max-width: 768px) {
    .header-text {
        font-size: 48px;
        /* Smaller for tablets/mobile */
    }
}

@media (max-width: 480px) {
    .header-text {
        font-size: 32px;
        /* Even smaller for phones */
    }
}

.post-counter {
    font-size: 16px;
    color: #666;
    /* Softer gray */
    margin-bottom: 25px;
    font-weight: 500;
}

/* Typing Effect Cursor */
.typing-cursor::after {
    content: '|';
    animation: blink 1s step-end infinite;
    /* step-end gives a cleaner blink */
    color: #000;
    margin-left: 4px;
    font-weight: 400;
    /* Thinner cursor looks more like a text input caret */
    vertical-align: text-bottom;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.controls {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    width: 100%;
    padding: 0 10px;
}

.search-container {
    width: 100%;
    max-width: 1260px;
    display: block;
    margin: 0 auto;
    position: relative;
}

.search-container input {
    width: 100%;
    padding: 15px 80px 15px 50px;
    font-size: 18px;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
    background-color: #f9f9f9;
    color: #333;
    font-family: inherit;
}

.search-container input:focus {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.search-container .search-icon {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    color: #666;
    pointer-events: none;
}

.filter-button {
    /* Reset positioning since wrapper handles it */
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    color: #333;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.3s ease;
}

.filter-button:hover {
    background-color: #e9e9e9;
}

.clear-filter {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    color: #333;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.clear-filter:hover {
    background-color: #e9e9e9;
}

.filter-wrapper {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    display: inline-block;
    z-index: 20;
}

.filter-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 280px;
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    overflow: hidden;
    text-align: left;
}

.filter-menu.active {
    display: block;
}

.filter-header {
    padding: 12px 16px;
    font-weight: 600;
    font-size: 16px;
    border-bottom: 1px solid #f3f4f6;
    color: #111827;
}

.filter-section {
    padding: 12px 16px;
    border-bottom: 1px solid #f3f4f6;
}

.filter-section-title {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}

.filter-option {
    display: flex;
    align-items: center;
    padding: 6px 0;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
}

.filter-option:hover {
    color: #111827;
}

.filter-option input[type="radio"] {
    margin-right: 10px;
    accent-color: #000;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.color-list {
    max-height: 200px;
    overflow-y: auto;
    /* Custom Scrollbar for list */
    scrollbar-width: thin;
    scrollbar-color: #d1d5db transparent;
}

.color-list::-webkit-scrollbar {
    width: 6px;
}

.color-list::-webkit-scrollbar-thumb {
    background-color: #d1d5db;
    border-radius: 3px;
}

.color-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin-right: 8px;
    display: inline-block;
    border: 1px solid rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.filter-footer {
    padding: 12px 16px;
    background-color: #f9fafb;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 400px));
    gap: 20px;
    margin: 0 auto;
    width: 100%;
    max-width: 1260px;
    box-sizing: border-box;
    justify-content: center;
    justify-content: center;
    padding: 0 10px;
}

.preview-box {
    border: 2px solid #000;
    width: 100%;
    max-width: 400px;
    height: 400px;
    position: relative;
    display: flex;
    flex-direction: column;
    cursor: pointer !important;
}

.preview-top {
    height: 50px;
    background-color: #fff;
    position: relative;
    border-bottom: 1px solid #000;
    display: flex;
    align-items: center;
    padding: 0 10px;
}

.preview-middle {
    flex: 1;
    position: relative;
    padding: 0;
    margin: 0;
}

.preview-bottom {
    height: 50px;
    background-color: #fff;
    position: absolute;
    bottom: 0;
    width: 100%;
    border-top: 1px solid #000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
}

.fixed-abc {
    color: #fff;
    background-color: #000;
    font-weight: bold;
    margin-right: 10px;
    font-size: 22px;
    padding: 5px;
}

.fixed-to {
    color: #000;
    font-weight: bold;
    margin-right: 5px;
    font-size: 22px;
}

.preview-to-input {
    color: #000;
    font-weight: bold;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    outline: none;
    border: none;
    background: transparent;
    font-size: 22px;
}

.custom-icon {
    width: 30px;
    height: 30px;
}

.preview-message {
    color: #fff;
    width: 100%;
    height: 100%;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin: 0;
    padding: 10px;
    background: transparent;
    font-size: 28px;
    text-align: left;
    box-sizing: border-box;
    overflow-y: auto !important;
    pointer-events: none;
    /* Clean up for textarea */
    border: none;
    outline: none;
    resize: none;
    caret-color: inherit;
}

.submit-page .preview-message {
    pointer-events: auto !important;
    outline: none !important;
    box-shadow: none !important;
}

.bottom-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.send-button {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 5px 10px;
    font-weight: bold;
    font-size: 18px;
    display: inline-block;
    cursor: pointer;
}

.send-button:hover {
    background-color: #333;
    color: #fff;
}

.back-button {
    background-color: #fff;
    border: 1px solid #000;
    color: #000;
    padding: 5px 10px;
    font-size: 18px;
    text-decoration: none;
}

.back-button:hover {
    background-color: #f0f0f0;
}

.hashtag {
    color: #000;
    font-weight: bold;
    font-size: 18px;
}

.report-btn {
    color: #ff0000;
    /* Pure red */
    cursor: pointer;
    font-size: 16px;
    padding: 5px;
    transition: transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
}

.report-btn:hover {
    transform: scale(1.2);
    color: #cc0000;
}

.container {
    padding-left: 0;
    padding-right: 0;
    max-width: none;
}

@media (max-width: 1260px) {
    .post-grid {
        width: 840px;
        grid-template-columns: repeat(2, 400px);
    }
}

@media (max-width: 840px) {
    .post-grid {
        width: 100%;
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    .preview-box {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .search-container {
        max-width: 100%;
    }

    .filter-button {
        font-size: 14px;
        padding: 8px 16px;
    }

    .clear-filter {
        font-size: 14px;
        padding: 8px 16px;
    }

    .color-select {
        width: 200px;
        max-width: 200px;
        right: 0;
        max-height: 150px;
    }
}

/* =========================================
   Submit Page Styles
   ========================================= */
.submit-page {
    padding: 20px !important;
    box-sizing: border-box;
}

.submit-page .container-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
    gap: 20px;
}

.submit-page .preview-box {
    width: 100%;
    max-width: 450px;
    min-height: 400px;
    max-height: 600px;
    height: 450px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: default !important;
    background-color: #000;
    border: 2px solid #000;
    box-sizing: border-box;
}


.submit-page .preview-middle {
    flex: 1;
    background-color: #000;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    padding: 0;
    margin: 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.submit-page .preview-middle::-webkit-scrollbar {
    display: none;
}


.submit-page .preview-message {
    padding: 0;
    cursor: text !important;
}

.submit-page .preview-bottom {
    position: static;
    width: 100%;
    flex-shrink: 0;
    border-top: 1px solid #000;
    background-color: #fff;
    box-sizing: border-box;
}

.submit-page .bottom-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: static;
    padding: 5px 15px 5px 5px;
    width: 100%;
    box-sizing: border-box;
}


.submit-page .color-box {
    width: 100%;
    max-width: 210px;
    /* Exact fit for 4*40px + 3*10px gaps + 2*10px padding */
    margin-left: 0;
    padding: 10px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 5px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    justify-items: center;
}

.submit-page .color-swatch {
    width: 40px;
    height: 40px;
    cursor: pointer;
    border: 2px solid #000;
    border-radius: 5px;
    margin-right: 0;
    /* Override */
}

.submit-page .color-swatch:hover {
    border-color: #333;
}

.submit-page .submit-section {
    width: 100%;
    max-width: 450px;
    margin: 10px auto 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.submit-page .submit-button {
    background-color: transparent;
    color: #000;
    border: 5px solid grey;
    font-weight: bold;
    font-size: 18px;
    border-radius: 0;
    box-shadow: none;
    transition: border-color 0.3s;
    margin-top: 50px;
    margin-bottom: 20px;
    width: 300px;
    height: 40px;
}

.submit-page .submit-button:hover {
    border-color: #666;
}

.submit-page .terms-checkbox {
    margin-right: 10px;
    margin-top: 10px;
}

/* Submit Page Mobile */
@media (max-width: 767px) {
    .submit-page {
        padding: 10px !important;
    }

    .submit-page .container-wrapper {
        flex-direction: column;
        max-width: 100%;
        width: 100%;
        margin: 0;
        gap: 0;
    }

    .submit-page .preview-box {
        width: 100%;
        min-height: 300px;
        max-height: 400px;
        margin: 0 auto;
    }

    .submit-page .color-box {
        width: 100%;
        margin-left: 0;
        margin-top: 20px;
        padding: 10px;
        display: grid;
        grid-template-columns: repeat(8, 1fr);
        gap: 3px;
    }

    .submit-page .color-swatch {
        width: 25px;
        height: 25px;
    }

    .submit-page .preview-top,
    .submit-page .preview-bottom {
        height: 40px;
        padding: 0 5px;
    }

    .submit-page .fixed-abc,
    .submit-page .fixed-to,
    .submit-page .preview-to-input {
        font-size: 18px;
    }

    .submit-page .preview-message {
        font-size: 20px;
    }

    .submit-page .send-button,
    .submit-page .back-button,
    .submit-page .hashtag {
        font-size: 14px;
        padding: 3px 8px;
    }

    .submit-page .submit-section {
        width: 100%;
    }

    .submit-page .submit-button {
        font-size: 20px;
    }

    .submit-page .terms-checkbox {
        margin-right: 5px;
    }
}



/* =========================================
   Login Page Styles
   ========================================= */
/* =========================================
   Login Page Styles
   ========================================= */
.login-page {
    background-color: #f8f9fa;
    /* Light gray background */
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 3rem;
    /* Increased padding */
    width: 100%;
    max-width: 900px;
    /* Widened for split view */
}

.login-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    /* Reduced from 4rem */
    align-items: start;
}

@media (max-width: 768px) {
    .login-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.login-title {
    font-size: 1.75rem;
    /* Balanced size */
    font-weight: 700;
    text-align: left;
    /* specific request */
    margin-bottom: 1.5rem;
    color: #111827;
    text-transform: capitalize;
    /* "Login" not "LOGIN" */
    letter-spacing: normal;
}

.form-label-unsent {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
    text-transform: none;
    /* Reference had normal case */
    letter-spacing: normal;
}

.form-control-unsent {
    display: block;
    width: 100%;
    padding: 0.75rem 0.5rem;
    /* Added horizontal padding */
    font-size: 1rem;
    line-height: 1.5;
    color: #111827;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #d1d5db;
    /* Visible border */
    border-radius: 0.25rem;
    /* Slight radius like reference */
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control-unsent:focus {
    color: #111827;
    background-color: #fff;
    border-color: #000000;
    outline: 0;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.form-control-unsent::placeholder {
    color: #9ca3af;
    opacity: 1;
    font-style: normal;
}

.btn-login-unsent {
    display: inline-block;
    /* Not full width */
    width: auto;
    min-width: 120px;
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
    color: #ffffff;
    background-color: #000000;
    /* Keeping black for brand consistency */
    border: 1px solid #000000;
    border-radius: 0.25rem;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    text-transform: none;
    /* "Login" case */
    margin-top: 1.5rem;
}

.btn-login-unsent:hover {
    background-color: #333333;
    border-color: #333333;
    color: #ffffff;
}



.post-page main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.post-page .post-image {
    border: 2px solid #000;
    width: 600px;
    height: 600px;
    max-width: 100%;
    margin: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.post-page .post-image img {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
}

.post-page #preview-container {
    border: 2px solid #000;
    width: 600px;
    max-width: 100%;
    height: auto;
    min-height: 600px;
    position: relative;
    display: flex;
    flex-direction: column;
    visibility: hidden;
    position: absolute;
    top: -9999px;
}

.post-page .preview-container-visible {
    visibility: visible !important;
    position: static;
    top: 0;
}

.post-page .preview-message {
    min-height: 500px;
    font-size: 36px;
    overflow: auto;
    padding: 10px;
}

.post-page .to-name-group {
    display: flex;
    align-items: center;
    margin-right: auto;
}

.post-page .custom-icon {
    width: 40px;
    height: 40px;
}

.post-page .info-section {
    text-align: left;
    max-width: 600px;
    width: 100%;
    margin: 0 0 20px 0;
    padding: 10px;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.post-page .info-item {
    margin: 5px 0;
    font-size: 18px;
    color: #333;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.post-page footer {
    width: 100%;
}

/* =========================================
   Contact Page Styles
   ========================================= */
.contact-page {
    background-color: #ffffff;
}

.contact-page .content {
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact-page .content h1 {
    color: #333;
    margin-bottom: 1.5rem;
}

.contact-page .content h2 {
    color: #444;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.contact-page .content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.contact-page .contact-form {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.contact-page .form-group {
    margin-bottom: 1rem;
}

.contact-page .map-placeholder {
    width: 100%;
    height: 300px;
    background: url('https://via.placeholder.com/800x300?text=Map+Placeholder') no-repeat center center;
    background-size: cover;
    border-radius: 8px;
    margin-top: 2rem;
}

.contact-page .btn-custom {
    background-color: #28a745;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.contact-page .btn-custom:hover {
    background-color: #218838;
}

.contact-page .alert {
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .post-page .post-image {
        width: 90vw;
        height: auto;
        aspect-ratio: 1/1;
    }

    .post-page #preview-container {
        width: 90vw;
        min-height: 0;
    }

    .post-page .preview-message {
        font-size: 24px;
        min-height: 300px;
    }

    .post-page .preview-top,
    .post-page .preview-bottom {
        height: 40px;
    }

    .post-page .fixed-abc,
    .post-page .fixed-to,
    .post-page .preview-to-input {
        font-size: 18px;
    }

    .post-page .custom-icon {
        width: 30px;
        height: 30px;
    }

    .post-page .send-button,
    .post-page .back-button,
    .post-page .hashtag {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .post-page .post-image {
        width: 100vw;
        height: auto;
        aspect-ratio: 1/1;
    }

    .post-page #preview-container {
        width: 100vw;
    }

    .post-page .preview-message {
        font-size: 20px;
        padding: 8px;
    }

    .post-page .info-section {
        padding: 8px;
    }

    .post-page .info-item {
        font-size: 16px;
    }
}

/* =========================================
   About Page Styles
   ========================================= */
.about-page {
    background-color: #ffffff;
}

.about-page .content {
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.about-page .content h1 {
    color: #333;
    margin-bottom: 1.5rem;
}

.about-page .content h2 {
    color: #444;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.about-page .content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Toast Notification Styles */
.unsent-toast {
    position: fixed;
    top: 90px;
    /* Slightly lower for better spacing */
    right: 24px;
    background-color: #ffffff;
    color: #1a1a1a;
    padding: 16px 20px;
    border: 1px solid #e5e5e5;
    /* Subtle border */
    border-radius: 12px;
    /* Smooth rounded corners */
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.15);
    /* Premium diffused shadow */
    z-index: 9999;
    opacity: 0;
    transform: translateX(20px) scale(0.95);
    /* Slide and scale effect */
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    /* Apple-like spring ease */
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    font-size: 14px;
    min-width: 320px;
    max-width: 400px;
    overflow: hidden;
}

.unsent-toast::before {
    content: '';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    flex-shrink: 0;
    font-size: 14px;
    font-weight: bold;
    color: white;
}

.unsent-toast.show {
    opacity: 1;
    transform: translateX(0) scale(1);
}

/* Success State */
.unsent-toast.success {
    border-left: none;
    /* Removed the bar */
}

.unsent-toast.success::before {
    content: '✓';
    background-color: #198754;
}

/* Error State */
.unsent-toast.error {
    border-left: none;
    /* Removed the bar */
}

.unsent-toast.error::before {
    content: '!';
    background-color: #dc3545;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-card:hover {
    transform: translateY(-2px);
}

/* Hover Lift Effect */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.stat-card.purple {
    border-left: 4px solid #8b5cf6;
}

.stat-card.yellow {
    border-left: 4px solid #fbbf24;
}

.stat-card.green {
    border-left: 4px solid #10b981;
}

.stat-card.red {
    border-left: 4px solid #ef4444;
}

.stat-label {
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.875rem;
    font-weight: 700;
    color: #111827;
}

/* =========================================
   Blog Image Sizing
   ========================================= */
.blog-featured-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
}

.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

@media (max-width: 768px) {
    .blog-featured-image {
        height: 250px;
    }
}