/* ==========================================================================
   1. 外部資源匯入
   ========================================================================== */
@import url("../libs/toastr/toastr.min.css");
@import url("../libs/fastadmin-layer/dist/theme/default/layer.css");

/* ==========================================================================
   2. 全局基礎設定 (Global Styles)
   ========================================================================== */
body {
    background-color: #f8f9fa; /* 淺灰色背景，突出白色的卡片 */
    color: #333;
    padding-top: 70px; /* 修正內容被固定導航欄遮住的問題 */
}

.martop {
    margin-top: 70px;
}

/* ==========================================================================
   3. 導覽列 (Header & Navbar)
   ========================================================================== */
#mainHeader {
    transition: all 0.3s ease;
}

#mainHeader.scrolled {
    background-color: rgba(33, 37, 41, 0.9) !important; /* 滾動後微透明 */
    backdrop-filter: blur(10px); /* 磨砂玻璃效果 */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   4. 通用組件 (Cards, Forms, Buttons)
   ========================================================================== */

/* 卡片樣式 */
.custom-card {
    background: #ffffff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.custom-card .card-title {
    color: #212529;
    font-weight: 700;
}

/* 表單控制項 */
.form-control {
    border: 1px solid #dee2e6;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.1);
    background-color: #fff;
}

/* 按鈕樣式 */
.btn-danger {
    background-color: #dc3545;
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
}

.btn-danger:hover:not(.disabled) {
    background-color: #c82333;
    transform: translateY(-1px);
}

/* ==========================================================================
   5. 會員中心專用樣式 (User Center / SideNav)
   ========================================================================== */

/* 個人資訊卡片 */
.subplan-user-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #f1f3f5;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row .label {
    color: #6c757d;
    font-weight: 500;
}

.info-row .value {
    color: #212529;
    font-weight: 600;
}

/* 側邊欄選單 */
.list-group-item {
    border-left: none;
    border-right: none;
    padding: 12px 20px;
}

.list-group-item.active {
    background-color: #f8f9fa; 
    color: #dc3545;            
    border-color: #dee2e6;
    font-weight: bold;
    border-left: 4px solid #dc3545; /* 左側紅色指示條 */
}

/* ==========================================================================
   6. 響應式設定 (Media Queries)
   ========================================================================== */

/* 平板以下 (991px 以下) */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: #212529;
        padding: 1rem;
        border-radius: 8px;
        margin-top: 10px;
    }
}

/* 手機版 (767px 以下) */
@media (max-width: 767.98px) {
    body {
        padding-top: 60px; /* 配合手機版較窄的導航欄 */
    }

    .martop {
        margin-top: 30px; 
    }

    .container.martop {
        padding-left: 15px;
        padding-right: 15px;
    }

    .custom-card .card-body {
        padding: 1.5rem !important; 
    }
}