/* ============================================================
   WL-Bot Components CSS (可重用元件)
   按鈕、卡片、表格、表單、徽章等元件樣式
   ============================================================ */

/* === 1. Buttons (按鈕) === */
.btn-login {
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 30px;
    padding: 6px 20px;
    color: var(--text-primary);
    transition: 0.3s;
}

.btn-login:hover {
    background: var(--gold-accent);
    border-color: var(--gold-accent);
    color: #000;
}

.theme-toggle-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    padding: 6px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle-btn:hover {
    color: var(--accent-gold);
    transform: rotate(15deg) scale(1.1);
}

[data-theme="light"] .theme-toggle-btn {
    color: var(--text-primary);
}

[data-theme="light"] .theme-toggle-btn:hover {
    color: var(--accent-gold);
}

.btn-outline-danger,
.btn-outline-warning,
.btn-outline-secondary {
    border-color: var(--glass-border);
    color: var(--text-muted);
    background: transparent;
}

.btn-outline-danger.active,
.btn-outline-danger:hover {
    background-color: var(--accent-gold);
    border-color: var(--accent-gold);
    color: #000;
}

.btn-danger {
    background-color: transparent;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background-color: var(--accent-gold);
    color: #000;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.btn-gold {
    background: transparent;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    border-radius: 50px;
    padding: 10px 30px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-gold:hover {
    background: var(--accent-gold);
    color: #000;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.glass-btn {
    background: var(--glass-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 12px 35px;
    color: var(--text-main);
    font-size: 14px;
    letter-spacing: 1px;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    cursor: pointer;
}

.glass-btn:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.3);
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    color: var(--text-main);
}

.glass-button-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

/* === 2. Cards (卡片) - 可重用元件 === */
.stats-card {
    background: var(--glass-surface);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-main);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.stats-card:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--accent-gold);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.stats-card h6 {
    color: var(--text-muted);
    font-weight: 500;
}

.stats-card h3,
.stats-card h4 {
    color: var(--accent-gold);
    font-weight: bold;
}

.stats-card p {
    color: var(--text-main);
}

.stats-card p.text-muted,
.stats-card p.text-muted.mb-0,
.stats-card .text-muted,
div.stats-card p.text-muted,
div.stats-card .text-muted {
    color: var(--text-main);
}

[data-theme="light"] .stats-card .text-muted {
    color: var(--text-muted) !important;
}

.feature-box {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 20px;
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    transition: all 0.3s ease;
    gap: 20px;
}

[data-theme="light"] .feature-box {
    background: rgba(248, 249, 250, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
}

.feature-icon {
    flex-shrink: 0;
    margin: 0;
    font-size: 24px;
    color: var(--accent-gold);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-title {
    font-size: 16px;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    color: var(--accent-gold);
    font-weight: 600;
    line-height: 1.4;
}

.feature-desc {
    font-size: 14px;
    color: var(--text-main);
    line-height: 1.6;
    margin: 0;
}

[data-theme="light"] .feature-desc {
    color: var(--text-main);
}

/* === 3. Badges (徽章) === */
.status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.2);
}

/* === 4. Tables (表格) === */
.service-card .table-enhanced th,
.table-enhanced th {
    color: var(--accent-gold) !important;
    font-weight: 600;
    background-color: rgba(0, 0, 0, 0.3) !important;
    border-bottom: 1px solid var(--glass-border);
}

.service-card .table-enhanced td,
.table-enhanced td,
.service-card .table-enhanced strong,
.service-card .table-enhanced b,
.table-enhanced .text-muted,
.table-enhanced span.text-muted {
    color: #ffffff !important;
    background-color: transparent;
    border-bottom: 1px solid var(--glass-border);
}

.table-enhanced .text-warning,
.table-enhanced .price-main {
    color: var(--accent-gold) !important;
}

.table-enhanced .text-danger {
    color: #dc3545 !important;
}
