/* 載入自定義字體 */
@font-face {
    font-family: 'Silver';
    src: url(/1d35e8bfdca87ec08f2c.ttf) format('truetype');
    font-weight: normal;
    font-style: normal;
    unicode-range: U+00-7F; /* ASCII */
}

/* 基礎重置樣式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* OBS 透明背景 */
body {
    background-color: transparent;
    color: #000000;
    font-family:
        'Silver',
        -apple-system,
        BlinkMacSystemFont,
        'Microsoft JhengHei',
        '微軟正黑體',
        'Segoe UI',
        Roboto,
        Arial,
        sans-serif;
}

/* 通用容器樣式 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 通用表單樣式 */
.form-group {
    margin-bottom: 20px;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 15px;
    border-radius: 5px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: #ffffff;
    font-weight: bold;
}

.form-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #4b5563;
    border-radius: 5px;
    background-color: #1f2937;
    color: #ffffff;
}

/* 通用按鈕樣式 */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    box-shadow: 1px 1px 2px #000000;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 2px 2px 12px #000000;
}

.btn-refresh {
    background-color: #00796B;
    color: #E8F5E9;
}

.btn-refresh:hover {
    background-color: #009688;
    color: white;
}

.btn-primary {
    background-color: #1E88E5;
    color: #E3F2FD;
}

.btn-primary:hover {
    background-color: #2196F3;
    color: white;
}

.btn-create {
    background-color: #e1a205;
    color: white;
    text-shadow: 1px 1px 1px #d58239;
}

.btn-create:hover {
    background-color: #fccf03;
    text-shadow: 1px 1px 1px #cf9b17;
}

.btn-secondary {
    background-color: #546E7A;
    color: #FAFAFA;
}

.btn-secondary:hover {
    background-color: #607D8B;
    color: white;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn-danger {
    background-color: #D32F2F;
    color: #FFEBEE;
}

.btn-danger:hover:not(:disabled) {
    background-color: #E53935;
    color: white;
}

.btn-warning {
    background-color: #ed880c;
    color: #FFF3E0;
}

.btn-warning:hover:not(:disabled) {
    background-color: #FF9800;
    color: white;
}

.btn-success {
    background-color: #4caf50;
    color: white;
}

.btn-success:hover:not(:disabled) {
    background-color: #45a049;
}

.btn-logout {
    background-color: #D32F2F;
    color: #FFEBEE;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.btn-logout:hover {
    background-color: #E53935;
    color: white;
}

/* 通用訊息樣式 */
.message {
    padding: 15px;
    margin: 10px 0;
    border-radius: 5px;
    display: none;
}

.message.success {
    background-color: #1a1a1a;
    color: #ffffff;
    border: 1px solid #2d2d2d;
}

.message.error {
    background-color: #7f1d1d;
    color: #ffffff;
    border: 1px solid #991b1b;
}

/* 通用動畫效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-in;
}

/* 通用響應式設計 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
}

/* ── Layout Shell ── */
html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: #1a1a2e;
    overflow: hidden;
}

.app-layout {
    display: flex;
    flex-direction: column;
    height: 100vh;
    min-height: 0;
}

/* ── Header ── */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    background: #16213e;
    border-bottom: 1px solid #2a2a4a;
    flex-shrink: 0;
    z-index: 10;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.app-title {
    margin: 0;
    color: #e0e0e0;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.merchant-info {
    background: rgba(255, 255, 255, 0.06);
    padding: 8px 16px;
    border-radius: 8px;
    color: #aaa;
    font-size: 13px;
    backdrop-filter: blur(10px);
}

.merchant-id {
    font-weight: 600;
    color: #4fc3f7;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-settings {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ccc;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-settings:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

/* ── Body (sidebar + content) ── */
.app-body {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

/* ── Sidebar ── */
.sidebar {
    width: 280px;
    background: #16213e;
    border-right: 1px solid #2a2a4a;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    transition: width 0.25s ease;
    overflow: hidden;
    position: relative;
    padding-bottom: 52px;
}

.sidebar.collapsed {
    width: 64px;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 12px 0 0;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    color: #8892b0;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    border-left: 3px solid transparent;
    font-size: 0.95rem;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: #ccd6f6;
}

.nav-item.active {
    background: rgba(79, 195, 247, 0.08);
    color: #4fc3f7;
    border-left-color: #4fc3f7;
    font-weight: 600;
}

.nav-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}

.nav-label {
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity 0.2s;
}

.sidebar.collapsed .nav-label {
    opacity: 0;
    width: 0;
}

.sidebar-toggle {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #8892b0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ccd6f6;
}

.sidebar.collapsed .sidebar-toggle {
    transform: translateX(-50%) rotate(180deg);
}

/* ── Sidebar: 觀眾連結 / OBS 連結 ── */
.sidebar-links {
    flex-shrink: 0;
    padding: 12px 14px 16px;
    border-top: 1px solid #2a2a4a;
    max-height: min(42vh, 360px);
    overflow-y: auto;
}

.sidebar.collapsed .sidebar-links {
    display: none;
}

.sidebar-links .donate-link-section {
    max-width: none;
    margin: 0;
}

.sidebar-links .donate-link-section + .donate-link-section {
    margin-top: 16px;
}

.sidebar-links .donate-link-label {
    font-size: 12px;
    margin-bottom: 6px;
}

.sidebar-links .donate-link-hint {
    font-size: 11px;
    margin-bottom: 8px;
}

.sidebar-links .donate-link-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
}

.sidebar-links .donate-link-input {
    font-size: 11px;
    padding: 8px 10px;
    min-width: 0;
}

.sidebar-links .btn-copy-link {
    width: 100%;
    padding: 8px 12px;
    font-size: 13px;
}

/* ── Content Area ── */
.content-area {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #1a1a2e;
}

.content-page {
    display: none;
    height: 100%;
    overflow-y: auto;
}

.content-page.active {
    display: block;
}

.content-frame {
    width: 100%;
    flex: 1;
    border: none;
    background: #212121;
}

.content-frame.active {
    display: block;
}

/* ── Content Toolbar ── */
.content-toolbar {
    padding: 16px 24px;
    background: #0f1a30;
    border-bottom: 1px solid #2a2a4a;
    flex-shrink: 0;
}

.toolbar-title {
    margin: 0 0 4px;
    color: #e0e0e0;
    font-size: 1.2rem;
    font-weight: 600;
}

.toolbar-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.toolbar-links:empty {
    display: none;
    margin: 0;
}

.toolbar-link-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.toolbar-link-label {
    color: #8892b0;
    font-size: 13px;
}

.toolbar-link-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.toolbar-checkbox-row {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}

.toolbar-checkbox-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #cfd8ea;
    font-size: 13px;
}

.toolbar-checkbox-item input[type='checkbox'] {
    width: 16px;
    height: 16px;
    accent-color: #4fc3f7;
}

.toolbar-link-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #2a2a4a;
    border-radius: 8px;
    background: #16213e;
    color: #e0e0e0;
    font-size: 14px;
}

.toolbar-link-input:focus {
    outline: none;
    border-color: #4fc3f7;
}

/* ── Home Content（空白首頁提示） ── */
#homeContent {
    padding: 0;
    display: none;
    height: 100%;
}

#homeContent.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-empty-hint {
    text-align: center;
    color: #5c6b8a;
    font-size: 1rem;
    margin: 0;
    padding: 24px;
}

.home-empty-hint p {
    margin: 0;
}

.home-empty-narrow {
    display: none;
    margin-top: 16px !important;
    font-size: 0.88rem;
    color: #6a7899;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

/* ── Donate Link Section（工具列等共用） ── */
.donate-link-section {
    max-width: 600px;
    margin: 0 auto;
}

.donate-link-section + .donate-link-section {
    margin-top: 28px;
}

.donate-link-hint {
    margin: 0 0 10px;
    font-size: 13px;
    color: #8892b0;
    line-height: 1.45;
}

.donate-link-label {
    display: block;
    color: #8892b0;
    font-size: 14px;
    margin-bottom: 8px;
}

.donate-link-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.donate-link-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #2a2a4a;
    border-radius: 8px;
    background: #16213e;
    color: #e0e0e0;
    font-size: 14px;
}

.donate-link-input:focus {
    outline: none;
    border-color: #4fc3f7;
}

.btn-copy-link {
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    background: #4fc3f7;
    color: #16213e;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.btn-copy-link:hover {
    background: #81d4fa;
}

/* ── Footer ── */
.app-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    background: #16213e;
    border-top: 1px solid #2a2a4a;
    flex-shrink: 0;
    font-size: 12px;
    color: #555;
}

.app-footer a {
    color: #4fc3f7;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.app-footer a:hover {
    color: #81d4fa;
}

.footer-sep {
    color: #333;
    margin: 0 2px;
}

.footer-contact {
    color: #555;
}

/* ── Loading ── */
.loading {
    color: #666;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.4;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ── Logout ── */
.btn-logout {
    position: static;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .sidebar {
        width: 64px;
    }

    .sidebar .nav-label {
        opacity: 0;
        width: 0;
    }

    .sidebar-links {
        display: none;
    }

    .sidebar-toggle {
        display: none;
    }

    .app-header {
        padding: 10px 16px;
    }

    .app-title {
        font-size: 1.2rem;
    }

    .merchant-info {
        display: none;
    }

    #homeContent {
        padding: 16px;
    }

    .home-empty-narrow {
        display: block;
    }
}


/*# sourceMappingURL=index.50c5b8550eb871295748.css.map*/