/* ============================================
   到位（Obtain）租客端 — 共用樣式
   ============================================ */

/* -- CSS 變數 -- */
:root {
    --app-primary: #958c7b;
    --app-primary-light: #b0a899;
    --app-primary-dark: #7a7263;
    --app-bg: #FDFBF7;
    --app-text: #4A433A;
    --card-bg: #EAE3D9;
    --status-ok: #05a660;
    --status-warn: #e5a910;
    --status-error: #dc3545;
}

/* -- 基礎樣式 -- */
body {
    background-color: #e9ecef;
    font-family: 'Noto Sans TC', sans-serif;
    -webkit-font-smoothing: antialiased;
    color: var(--app-text);
    margin: 0;
    padding: 0;
}

/* 隱藏未編譯的 Vue 模板標籤 */
[v-cloak] {
    display: none;
}

/* -- 主容器 -- */
.app-wrapper {
    max-width: 430px;
    margin: 0 auto;
    background-color: var(--app-bg);
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    overflow-x: hidden;
    padding-bottom: 90px;
}

.app-wrapper::-webkit-scrollbar {
    display: none;
}

/* -- 頂部標頭 -- */
.app-header {
    padding: 2rem 1.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: transparent;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* -- 區塊標題 -- */
.section-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 1rem;
    padding: 0 1.5rem;
    color: var(--app-text);
}

/* -- 列表卡片 -- */
.list-card {
    background: white;
    border-radius: 1.2rem;
    margin: 0 1.25rem 1rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.02);
    text-decoration: none;
    color: inherit;
}

/* -- 資訊方塊 -- */
.info-block {
    background-color: var(--card-bg);
    color: var(--app-primary-dark);
    border-radius: 0.8rem;
    width: 65px;
    height: 65px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.info-block-top {
    font-size: 0.65rem;
    font-weight: bold;
    opacity: 0.8;
}

.info-block-main {
    font-size: 1.4rem;
    font-weight: bold;
    line-height: 1.1;
}

/* -- 底部導航列 -- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    max-width: 430px;
    background: white;
    display: flex;
    justify-content: space-around;
    padding: 0.4rem 0 calc(0.4rem + env(safe-area-inset-bottom));
    border-top: 1px solid #EBE6DF;
    z-index: 1000;
}

.nav-item {
    text-align: center;
    color: #BBAF9E;
    text-decoration: none;
    font-size: 0.65rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    cursor: pointer;
    transition: color 0.2s;
}

.nav-item i {
    font-size: 1.25rem;
}

.nav-item.active {
    color: var(--app-primary-dark);
    font-weight: bold;
}

/* -- 圓角按鈕 -- */
.btn-custom {
    background-color: var(--app-primary);
    color: white;
    border: none;
    border-radius: 0.8rem;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.btn-custom:active {
    background-color: var(--app-primary-dark);
}

.btn-custom.outline {
    background-color: transparent;
    color: var(--app-primary-dark);
    border: 1px solid var(--app-primary-light);
}

/* -- 上傳框 -- */
.upload-box {
    border: 2px dashed #EBE6DF;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    color: #BBAF9E;
    background-color: #FAFAF8;
    cursor: pointer;
}

/* -- 模態框與表單 -- */
.modal-content-custom {
    border-radius: 1.5rem;
    border: none;
    background-color: var(--app-bg);
}

.form-control-custom {
    border-radius: 0.8rem;
    border: 1px solid #EBE6DF;
    padding: 0.8rem;
    background-color: white;
}

.form-control-custom:focus {
    border-color: var(--app-primary);
    box-shadow: 0 0 0 0.2rem rgba(149, 140, 123, 0.25);
}
