* {
    box-sizing: border-box;
}
body {
    margin: 0;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #e8ecef;
    color: #111827;
}
a {
    color: inherit;
    text-decoration: none;
}
a:hover {
    opacity: 0.88;
}
#workingHoursBanner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1002;
    height: 24px;
    background: #edf8f0;
    color: #1f6f45;
    border-bottom: 1px solid #c8e6d9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    letter-spacing: 0.3px;
}
#partnerBanner {
    position: fixed;
    top: 24px;
    left: 0;
    right: 0;
    z-index: 1001;
    height: 24px;
    background: linear-gradient(90deg, #b91c1c 0%, #ef4444 100%);
    overflow: hidden;
    border-bottom: 1px solid #b91c1c;
}
#partnerBanner marquee {
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 24px;
}
.top-header-bar {
    position: fixed;
    top: 48px;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    height: 56px;
    display: flex;
    align-items: center;
    padding: 0 20px;
}
.top-header-bar .header-left,
.top-header-bar .header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}
.mobile-chat-header,
.mobile-back-button,
.mobile-menu,
.mobile-menu-toggle,
.mobile-menu-panel {
    display: none;
}
.top-header-bar .header-left {
    flex: 1;
}
.top-header-bar .header-right {
    gap: 16px;
}
.top-header-bar button,
.top-header-bar .header-button {
    border: 1px solid #e5e7eb;
    background: #f8fafc;
    border-radius: 999px;
    color: #111827;
    padding: 8px 14px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
.top-header-bar button:hover,
.top-header-bar .header-button:hover {
    background: #eff6ff;
}
.top-header-bar .user-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 999px;
    background: #f8fafc;
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
}
.top-header-bar .user-pill .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #60a5fa;
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}
.tg-app {
    position: fixed;
    top: 104px;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    overflow: hidden;
}
.tg-sidebar {
    width: 380px;
    min-width: 320px;
    max-width: 420px;
    background: #ffffff;
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.tg-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #f3f4f6;
    min-height: 0;
}
.tg-main .chat-window {
    flex: 1;
    overflow-y: auto;
    padding: 24px 28px 16px;
    min-height: 0;
}
.message {
    max-width: 84%;
    margin-bottom: 14px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.message.user {
    margin-left: auto;
    align-items: flex-end;
    flex-direction: row-reverse;
}
.message-body {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}
.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #dbeafe;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #1d4ed8;
    flex-shrink: 0;
}
.message .meta {
    color: #64748b;
    font-size: 12px;
}
.meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}
.message-action-button {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #111827;
    font-size: 18px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.message-action-button:hover {
    background: #f8fafc;
}
.message-actions-popup {
    position: absolute;
    top: 42px;
    right: 0;
    display: none;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    min-width: 120px;
    z-index: 50;
}
.message-actions-popup button {
    width: 100%;
    border: none;
    background: transparent;
    padding: 10px 14px;
    text-align: left;
    color: #111827;
    cursor: pointer;
}
.message-actions-popup button:hover {
    background: #f8fafc;
}
.message .bubble {
    position: relative;
    padding: 14px 18px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    color: #111827;
    line-height: 1.7;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}
.message.user .bubble {
    background: #dcfce7;
    border-color: #bbf7d0;
}
.reply-quote {
    margin-bottom: 10px;
    padding: 10px 14px;
    border-left: 3px solid #22c55e;
    background: #f0fdf4;
    border-radius: 16px;
    color: #134e4a;
}
.reply-quote-title {
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 4px;
}
.reply-quote-text {
    font-size: 13px;
    line-height: 1.5;
    color: #0f172a;
}
.message-image {
    max-width: 280px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 12px;
    cursor: pointer;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}
.message-image img {
    width: 100%;
    display: block;
    object-fit: cover;
}
.reply-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid #d1d5db;
    border-radius: 18px;
    margin-bottom: 12px;
}
.reply-preview-body {
    min-width: 0;
}
.reply-preview-body strong {
    display: block;
    font-size: 13px;
    color: #111827;
    margin-bottom: 4px;
}
.reply-preview-body p {
    margin: 0;
    color: #475569;
    font-size: 13px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.reply-preview .button {
    min-width: auto;
    padding: 8px 12px;
}
.image-zoom-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.78);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}
.image-zoom-overlay.visible {
    display: flex;
}
.image-zoom-content {
    max-width: 100%;
    max-height: 100%;
    border-radius: 24px;
    box-shadow: 0 32px 90px rgba(15, 23, 42, 0.35);
    object-fit: contain;
}
.tg-chat-empty {
    flex: 1;
    position: relative;
    min-height: 0;
    background: radial-gradient(circle at top center, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 35%, rgba(240,246,255,0.7) 100%), url('data:image/svg+xml,%3Csvg width="360" height="360" xmlns="http://www.w3.org/2000/svg"%3E%3Ccircle cx="180" cy="180" r="180" fill="%23f8fafc"/%3E%3Ccircle cx="90" cy="90" r="40" fill="%23e2e8f0"/%3E%3Ccircle cx="270" cy="130" r="30" fill="%23dbeafe"/%3E%3Ccircle cx="200" cy="260" r="28" fill="%23d1fae5"/%3E%3C/svg%3E');
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}
.tg-chat-footer {
    padding: 18px 24px;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
}
.tg-sidebar-header {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    border-bottom: 1px solid #e5e7eb;
}
.tg-sidebar-header h2 {
    margin: 0;
    font-size: 16px;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 10px;
}
.tg-search-row {
    display: flex;
    gap: 10px;
}
.tg-search {
    flex: 1;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background: #f8fafc;
    padding: 10px 16px;
    color: #475569;
    outline: none;
    font-size: 14px;
}
.tg-search::placeholder {
    color: #94a3b8;
}
.tg-filter-btn {
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    min-width: 112px;
    font-size: 14px;
}
.tg-status-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.tg-status-tab {
    flex: 1;
    min-width: 90px;
    padding: 10px 12px;
    border-radius: 999px;
    background: #f8fafc;
    color: #475569;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    cursor: pointer;
}
.tg-status-tab.active {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}
.tg-chat-list {
    flex: 1;
    overflow-y: auto;
    padding: 0 0 12px;
}
.tg-chat-item {
    padding: 16px 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: background 0.15s ease;
}
.tg-chat-item:hover {
    background: #f8fafc;
}
.tg-chat-item.active {
    background: #eff6ff;
}
.tg-chat-avatar {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #e0f2fe;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #2563eb;
    flex-shrink: 0;
}
.tg-chat-info {
    flex: 1;
    min-width: 0;
}
.tg-chat-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 6px;
    color: #111827;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.tg-chat-title .tag {
    font-size: 11px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #f8fafc;
    color: #475569;
}
.tg-chat-snippet {
    font-size: 13px;
    line-height: 1.6;
    color: #64748b;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.tg-chat-meta {
    margin-top: 8px;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #94a3b8;
}
.tg-main-header {
    padding: 22px 28px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid #e5e7eb;
    background: #ffffff;
}
.tg-main-header .title-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.tg-main-header h1 {
    margin: 0;
    font-size: 24px;
    color: #111827;
}
.tg-main-header p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}
.tg-chat-empty {
    flex: 1;
    position: relative;
    min-height: 0;
    background: radial-gradient(circle at top center, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 35%, rgba(240,246,255,0.7) 100%), url('data:image/svg+xml,%3Csvg width="360" height="360" xmlns="http://www.w3.org/2000/svg"%3E%3Ccircle cx="180" cy="180" r="180" fill="%23f8fafc"/%3E%3Ccircle cx="90" cy="90" r="40" fill="%23e2e8f0"/%3E%3Ccircle cx="270" cy="130" r="30" fill="%23dbeafe"/%3E%3Ccircle cx="200" cy="260" r="28" fill="%23d1fae5"/%3E%3C/svg%3E');
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}
.tg-chat-empty-card {
    max-width: 560px;
    text-align: center;
    color: #475569;
}
.tg-chat-empty-card .icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: #dbeafe;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1d4ed8;
    font-size: 28px;
}
.tg-chat-empty-card h2 {
    margin: 0;
    font-size: 22px;
    color: #111827;
}
.tg-chat-empty-card p {
    margin: 12px 0 0;
    line-height: 1.8;
}
.tg-chat-footer {
    padding: 18px 24px;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
}
.tg-input-area {
    display: flex;
    gap: 12px;
    align-items: center;
}
.tg-input-area button:not(.tg-send-btn),
.tg-input-area .icon-button {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #d1d5db;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.18s ease;
}
.tg-input-area button:not(.tg-send-btn):hover,
.tg-input-area .icon-button:hover {
    background: #eef2ff;
    transform: translateY(-1px);
}
.tg-input-area input {
    flex: 1;
    min-height: 46px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    padding: 0 18px;
    font-size: 15px;
    color: #111827;
    outline: none;
}
.tg-send-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #00b894;
    color: #ffffff;
    border: none;
    box-shadow: 0 12px 30px rgba(0, 184, 148, 0.22);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
    padding: 0;
}
.tg-send-btn:hover {
    background: #009970;
}
.tg-send-btn:disabled {
    opacity: 0.56;
    cursor: not-allowed;
}
.tg-button-primary {
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    padding: 10px 18px;
    border: none;
    background: #10b981;
    color: #ffffff;
    font-size: 13px;
    cursor: pointer;
}
.tg-button-primary:hover {
    background: #059669;
}
.tg-tag-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    font-size: 12px;
    font-weight: 600;
}
.tg-status-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #1d4ed8;
    font-size: 12px;
}
.tg-status-pill.pending { background: #fef3c7; color: #b45309; }
.tg-status-pill.done { background: #dcfce7; color: #15803d; }
@media (max-width: 1080px) {
    .tg-sidebar { width: 100%; max-width: none; min-width: 0; }
    .tg-app { position: static; top: auto; height: auto; flex-direction: column; }
    .tg-main { height: auto; }
}
@media (max-width: 720px) {
    #workingHoursBanner, #partnerBanner { display: none; }
    .top-header-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 1002; height: auto; padding: 12px 16px; border-bottom: 1px solid #e5e7eb; flex-direction: column; align-items: stretch; gap: 10px; }
    .tg-app { position: static; top: auto; height: auto; flex-direction: column; margin-top: 88px; }
    .tg-sidebar { width: 100%; }
    .tg-main { display: none; }
    .tg-app.show-chat .tg-sidebar { display: none; }
    .tg-app.show-chat .tg-main { display: flex; flex-direction: column; min-height: calc(100vh - 72px); padding-bottom: 110px; overflow: hidden; }
    .tg-main-header { flex-direction: column; align-items: flex-start; padding: 14px 16px; }
    .tg-main-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        border-radius: 50%;
        border: 1px solid #d1d5db;
        margin-bottom: 12px;
        text-decoration: none;
        color: #111827;
        background: #ffffff;
    }
    .tg-main-close {
        display: none;
    }
    .top-header-bar .header-left,
    .top-header-bar .header-right {
        display: none;
    }
    .mobile-chat-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        gap: 10px;
        padding: 12px 0;
    }
    .mobile-header-copy {
        display: flex;
        flex-direction: column;
        min-width: 0;
        gap: 2px;
        width: calc(100% - 100px);
    }
    .mobile-group-title {
        font-size: 14px;
        font-weight: 700;
        color: #111827;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }
    .mobile-header-subtitle {
        font-size: 11px;
        color: #64748b;
    }
    .mobile-header-ticker {
        display: block;
        overflow: hidden;
        border-radius: 999px;
        background: linear-gradient(90deg, #b91c1c 0%, #ef4444 100%);
        padding: 6px 10px;
        width: 100%;
        margin-top: 6px;
    }
    .mobile-header-ticker marquee {
        display: block;
        color: #ffffff;
        font-size: 12px;
        font-weight: 600;
        line-height: 18px;
        white-space: nowrap;
    }
    .mobile-header-ticker marquee strong {
        color: #ffffff;
    }
    .mobile-back-button,
    .mobile-menu {
        display: inline-flex;
        align-items: center;
        gap: 4px;
    }
    .mobile-back-button {
        width: 34px;
        height: 34px;
        padding: 0;
        border-radius: 50%;
        border: 1px solid #d1d5db;
        background: #ffffff;
        color: #111827;
        font-weight: 700;
        cursor: pointer;
        box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
    }
    .mobile-back-button:hover {
        background: #f8fafc;
    }
    .mobile-menu {
        position: relative;
        margin-left: auto;
    }
    .mobile-menu-toggle {
        width: 88px;
        height: 34px;
        padding: 0 12px;
        border-radius: 999px;
        border: 1px solid #d1d5db;
        background: #ffffff;
        color: #111827;
        font-size: 13px;
        font-weight: 700;
        cursor: pointer;
        box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
    }
    .mobile-menu-panel {
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        background: #ffffff;
        border: 1px solid #e5e7eb;
        border-radius: 18px;
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
        display: none;
        flex-direction: column;
        min-width: 180px;
        overflow: hidden;
        z-index: 20;
    }
    .mobile-menu.open .mobile-menu-panel {
        display: flex;
    }
    .mobile-menu-item {
        padding: 12px 16px;
        color: #111827;
        text-decoration: none;
        font-size: 14px;
        background: transparent;
        transition: background 0.18s ease;
    }
    .mobile-menu-item:hover {
        background: #f8fafc;
    }
    .mobile-menu-user {
        color: #475569;
        border-top: 1px solid #e5e7eb;
    }
    .tg-input-area {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }
    .tg-input-area button:not(.tg-send-btn), .tg-input-area .icon-button {
        width: 46px;
        min-width: 46px;
    }
    .tg-input-area input {
        min-width: 0;
    }
    .tg-app.show-chat .tg-main .chat-window {
        flex: 1;
        overflow-y: auto;
        min-height: 0;
        padding-bottom: 106px;
    }
    .tg-app.show-chat .tg-main {
        padding-bottom: 0;
    }
    .tg-app.show-chat .tg-chat-footer {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 14px 16px;
        background: #ffffff;
        border-top: 1px solid #e5e7eb;
        box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.08);
        z-index: 1500;
    }
    .tg-app.show-chat .tg-main {
        padding-bottom: 110px;
    }
    .tg-app.show-chat .chat-window {
        flex: 1;
        overflow-y: auto;
        min-height: 0;
    }
    @keyframes mobileMarquee {
        0% { transform: translateX(100%); }
        100% { transform: translateX(-100%); }
    }
}

/* Admin and shared utility styles */
.topbar {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #111827;
}
.topbar a {
    color: #2563eb;
    font-weight: 600;
}
.login-panel {
    max-width: 420px;
    margin: 120px auto 60px;
    padding: 32px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    box-shadow: 0 18px 60px rgba(15, 23, 42, 0.08);
}
.login-panel h2 {
    margin: 0 0 24px;
    font-size: 24px;
    color: #0f172a;
}
.form-group {
    margin-bottom: 18px;
}
.form-group label {
    display: inline-block;
    margin-bottom: 8px;
    color: #475569;
    font-size: 14px;
}
.form-group input,
.form-group textarea,
.form-group select,
.admin-card-form input,
.admin-card-form textarea,
.admin-card-form select {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid #d1d5db;
    background: #fbfdff;
    color: #0f172a;
    outline: none;
    font-size: 14px;
}
.form-group textarea,
.admin-card-form textarea {
    resize: vertical;
    min-height: 120px;
}
.button {
    border: none;
    border-radius: 14px;
    padding: 12px 20px;
    background: #1d4ed8;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease;
}
.button:hover {
    background: #2563eb;
}
.button.secondary {
    background: #f8fafc;
    color: #0f172a;
    border: 1px solid #d1d5db;
}
.button.secondary:hover {
    background: #eff6ff;
}
.button.danger {
    background: #dc2626;
}
.button.danger:hover {
    background: #b91c1c;
}
.button.small {
    padding: 8px 14px;
    font-size: 13px;
}
.badge-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    background: #f8fafc;
    color: #475569;
    border-radius: 999px;
    font-size: 12px;
}
.flash {
    margin: 16px 0;
    padding: 16px 18px;
    border-radius: 16px;
    background: #eef2ff;
    color: #1e3a8a;
    border: 1px solid #c7d2fe;
}
.admin-shell {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
    gap: 24px;
    padding: 96px 24px 24px;
    background: #f3f4f6;
}
.admin-sidebar {
    position: sticky;
    top: 96px;
    align-self: start;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.06);
    padding: 24px;
    min-height: calc(100vh - 120px);
}
.admin-sidebar-brand {
    margin-bottom: 28px;
}
.admin-logo {
    font-size: 24px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 6px;
}
.admin-sidebar p {
    margin: 0;
    color: #475569;
    font-size: 14px;
}
.admin-menu {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.admin-menu-item {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-radius: 18px;
    color: #475569;
    background: #f8fafc;
    border: 1px solid transparent;
    transition: background 0.18s ease, color 0.18s ease;
}
.admin-menu-item:hover,
.admin-menu-item.active {
    background: #eff6ff;
    color: #1d4ed8;
}
.admin-menu-item.logout {
    margin-top: 24px;
    color: #dc2626;
    background: #fef2f2;
}
.admin-menu-item.logout:hover {
    background: #fee2e2;
}
.admin-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 28px;
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.05);
}
.admin-header h1 {
    margin: 0;
    font-size: 28px;
    color: #111827;
}
.admin-header p {
    margin: 8px 0 0;
    color: #475569;
    font-size: 15px;
}
.admin-header-actions {
    color: #475569;
    font-size: 14px;
}
.admin-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.05);
}
.admin-card-form {
    padding: 24px;
}
.admin-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.admin-card-header h2 {
    margin: 0;
    font-size: 20px;
    color: #111827;
}
.admin-table-wrap {
    overflow-x: auto;
}
.table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}
.table th,
.table td {
    text-align: left;
    padding: 14px 16px;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: middle;
    color: #475569;
}
.table th {
    background: #f8fafc;
    color: #1f2937;
    font-weight: 700;
    font-size: 14px;
}
.table tbody tr:hover {
    background: #f8fafc;
}
.form-row {
    display: grid;
    gap: 18px;
    margin-bottom: 18px;
}
.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.align-end {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}
@media (max-width: 1024px) {
    .admin-shell {
        grid-template-columns: 1fr;
        padding: 140px 16px 16px;
    }
    .admin-sidebar {
        position: static;
        min-height: auto;
        width: 100%;
    }
}
@media (max-width: 720px) {
    .admin-shell {
        padding: 120px 12px 12px;
    }
    .admin-header,
    .admin-card,
    .admin-card-form {
        padding: 18px;
        border-radius: 20px;
    }
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
    .admin-menu {
        gap: 10px;
    }
}
