/* ========================================
   統一佈局樣式 (整合原 layout.css + dashboard.css)
   ======================================== */

/* ===========================================
   基礎佈局 (原 layout.css)
   =========================================== */

/* 讓登出按鈕看起來像普通的下拉選單項目 */
.dropdown-item-logout {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    padding: 0.375rem 1rem;
    font-size: 1rem;
    color: var(--bs-dropdown-link-color);
    text-decoration: none;
    display: block;
}

.dropdown-item-logout:hover {
    background-color: var(--bs-dropdown-link-hover-bg);
    color: var(--bs-dropdown-link-hover-color);
}

/* 讓 footer 固定在頁面底部 */
html,
body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.container {
    flex: 1;
}

/* ===========================================
   側邊欄佈局 (原 dashboard.css)
   =========================================== */

/* Dashboard Layout */
.sidebar {
    width: 240px;
    height: 100vh;
    background-color: #f8f9fa;
    position: fixed;
    top: 60px;
    left: 0;
    z-index: 1000;
    padding: 1rem 0;
    border-right: 1px solid #dee2e6;
    overflow-y: auto;
}

.sidebar .nav-header {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar .nav-link {
    padding: 0.75rem 1.25rem;
    color: #495057;
    font-weight: 500;
    border-radius: 0;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.sidebar .nav-link:hover {
    background-color: #e9ecef;
    color: #212529;
    border-left-color: var(--bs-primary);
}

.sidebar .nav-link.active {
    background-color: rgba(242, 151, 57, 0.1);
    color: var(--bs-primary);
    border-left-color: var(--bs-primary);
    font-weight: 600;
}

.sidebar .nav-link i {
    width: 20px;
    text-align: center;
}

.main-content {
    margin-left: 240px;
    margin-top: 60px;
    min-height: calc(100vh - 60px);
    width: calc(100% - 240px);
}

/* Mobile responsive */
@media (max-width: 991.98px) {
    .sidebar {
        width: 240px;
        transform: translateX(-100%);
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .offcanvas {
        width: 240px !important;
    }
}

/* ===========================================
   事件卡片樣式 (原 dashboard.css)
   =========================================== */

.event-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 0.375rem 0 0 0.375rem;
}

.obj-cover {
    width: 120px;
    height: 120px;
    object-fit: cover;
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
