/* ═══ 台灣百岳山屋自動化申請系統 獨立專用樣式表 (Cabin App Stylesheet) ═══ */

#cabin-app {
    padding: 2rem 1rem;
    max-width: 1400px;
    margin: 0 auto;
    color: #e2e8f0;
}

.cabin-app-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cabin-header {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(6, 182, 212, 0.1));
    border: 1px solid rgba(52, 211, 153, 0.3);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.cabin-header h2 {
    margin: 0;
    font-size: 1.6rem;
    color: #34d399;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cabin-subtitle {
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: normal;
}

.cabin-desc {
    margin-top: 0.5rem;
    font-size: 0.92rem;
    color: #cbd5e1;
    line-height: 1.6;
}

/* Tab Navigation */
.cabin-tabs {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cabin-tab-btn {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #94a3b8;
    padding: 0.75rem 1.4rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.cabin-tab-btn:hover {
    background: rgba(52, 211, 153, 0.15);
    color: #6ee7b7;
    border-color: rgba(52, 211, 153, 0.4);
    transform: translateY(-2px);
}

.cabin-tab-btn.active {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(6, 182, 212, 0.25));
    border-color: #34d399;
    color: #ffffff;
    box-shadow: 0 0 15px rgba(52, 211, 153, 0.3);
}

.cabin-tab-content {
    display: none;
    animation: cabinFadeIn 0.3s ease;
}

.cabin-tab-content.active {
    display: block;
}

@keyframes cabinFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Cabin Board Cards Grid */
.cabin-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.lodge-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.lodge-card:hover {
    transform: translateY(-4px);
    border-color: rgba(52, 211, 153, 0.5);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(52, 211, 153, 0.2);
}

.lodge-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.lodge-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #f8fafc;
}

.lodge-park {
    font-size: 0.78rem;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.15);
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.lodge-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    background: rgba(15, 23, 42, 0.6);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.metric-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.metric-label {
    font-size: 0.75rem;
    color: #94a3b8;
}

.metric-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #f1f5f9;
}

.metric-value.highlight-green { color: #4ade80; }
.metric-value.highlight-yellow { color: #facc15; }
.metric-value.highlight-red { color: #f87171; }

.badge-winrate {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-align: center;
}
.winrate-high { background: rgba(74, 222, 128, 0.2); color: #4ade80; border: 1px solid #4ade80; }
.winrate-mid { background: rgba(250, 204, 21, 0.2); color: #facc15; border: 1px solid #facc15; }
.winrate-low { background: rgba(248, 113, 113, 0.2); color: #f87171; border: 1px solid #f87171; }

/* Member Vault & Tables */
.cabin-vault-panel, .cabin-tracker-panel, .cabin-notify-panel {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.8));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.75rem;
    backdrop-filter: blur(12px);
}

.vault-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.vault-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.security-note {
    font-size: 0.82rem;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
    padding: 0.6rem 1rem;
    border-radius: 8px;
    border-left: 3px solid #38bdf8;
    margin: 1rem 0;
}

.cabin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.cabin-table th {
    background: rgba(15, 23, 42, 0.8);
    color: #94a3b8;
    text-align: left;
    padding: 0.8rem 1rem;
    font-size: 0.85rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.cabin-table td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.9rem;
}

.cabin-input {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #f8fafc;
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    font-size: 0.88rem;
    width: 100%;
    box-sizing: border-border-box;
}

.cabin-input:focus {
    outline: none;
    border-color: #34d399;
    box-shadow: 0 0 8px rgba(52, 211, 153, 0.3);
}

.tracker-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) auto;
    gap: 0.75rem;
    align-items: center;
}

/* Notification Section */
.notify-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.notify-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.25rem;
    border-radius: 12px;
}

.notify-card h4 {
    margin-top: 0;
    color: #34d399;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .cabin-card-grid {
        grid-template-columns: 1fr;
    }
    .tracker-form {
        grid-template-columns: 1fr;
    }
    .vault-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
