/* css/style.css - (自訂樣式) */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;700&display=swap');

* {
    font-family: 'Noto Sans TC', sans-serif;
}

body {
    background: linear-gradient(135deg, #ECEEF3 0%, #DABED7 100%);
    min-height: 100vh;
}

/* 登入頁面背景 */
.bg-light {
    background: rgba(255,255,255,0.95) !important;
}

/* 導覽列 */
.navbar {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 卡片美化 */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.card-header {
    border-radius: 15px 15px 0 0 !important;
}

/* 按鈕美化 */
.btn {
    border-radius: 12px;
    font-weight: 500;
    padding: 10px 20px;
}

.btn-lg {
    padding: 14px 30px;
    font-size: 1.1rem;
}

/* 表格美化 */
.table {
    border-radius: 12px;
    overflow: hidden;
}

.table thead {
    background: linear-gradient(90deg, #667eea, #764ba2);
    color: white;
}

/* OrgChart 節點顏色（與 Tree.php 同步） */
.node-lv   { background: #6c757d !important; }
.node-1    { background: #28a745 !important; }
.node-2    { background: #007bff !important; }
.node-3    { background: #fd7e14 !important; }
.node-4    { background: #6f42c1 !important; }
.node-5    { background: #e83e8c !important; }
.node-6    { background: linear-gradient(45deg, #ffc107, #f39c12) !important; color:#000 !important; }

/* 已重銷標記 */
.node-renew {
    box-shadow: 0 0 20px #28a745 !important;
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    from { box-shadow: 0 0 10px #28a745; }
    to   { box-shadow:0 0 30px #28a745; }
}

/* 儀表板卡片 */
.bg-primary, .bg-success, .bg-info, .bg-warning {
    color: white !important;
    border-radius: 15px;
}

/* 手機優化 */
@media (max-width: 768px) {
    .container { padding: 10px; }
    .card { margin-bottom: 20px; }
    #tree { height: calc(100vh - 200px); }
}

/* 頁尾 */
footer {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 20px 0;
    margin-top: 50px;
}