:root {
    --primary-color: #2b6cb0;
    --secondary-color: #4a90e2;
    --accent-color: #10b981;
    --dark-color: #1f2937;
    --light-color: #f8fafc;
    --primary-color: #2b6cb0;
    --secondary-color: #4a90e2;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #06b6d4;
}

body {
    font-family: 'Microsoft JhengHei', Arial, sans-serif;
    background-color: #f8f9fa;
    color: #333;
}


/* 導航欄樣式 */
.navbar {
    background: rgba(255, 255, 255, 0.99);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0.2rem 0;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    margin-right: 0;
}

.navbar-toggler {
    border: 1px solid;
    padding: 3px 8px;
}

.navbar-brand img {
    height: 67px;
    margin-right: 0px;
}

.nav-link {
    color: var(--dark-color) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin: 0 0.2rem;
    border-radius: 5px;
    transition: all 0.3s;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    background-color: rgba(43, 108, 176, 0.1);
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(43, 108, 176, 0.1);
}

.card-header .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin: 0 0.2rem;
    border-radius: 5px;
    transition: all 0.3s;
}

.card-header .nav-link:hover,
.card-header .nav-link.active {
    background-color: rgba(255, 255, 255, 0.15);
    color: white !important;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    /* transform: translateY(-2px); */
}

.filter-section .btn-primary {
    padding: 0.4rem 1.5rem;
}

/* 英雄區域 */
.hero-section {
    background: linear-gradient(135deg, rgba(43, 108, 176, 0.9), rgba(74, 144, 226, 0.8)), url('../images/main.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 6rem 0;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.hero-buttons {
    margin-top: 2rem;
}

/* 功能特色 */
.features-section {
    padding-top: 5rem;
    padding-bottom: 2rem;
    background-color: white;
}

.feature-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    transition: all 0.3s;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.feature-description {
    color: #6b7280;
    line-height: 1.6;
}

/* 數據統計 */
.stats-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 4rem 0;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* 登錄區域 */
.login-section {
    padding: 5rem 0;
    background-color: #f8fafc;
}

.login-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
}

.security-badge {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

/* 頁腳 */
footer {
    background-color: var(--dark-color);
    color: #cfcfcf;
    padding: 3rem 0 1.5rem;
}

.footer-link {
    color: #cfcfcf;
    display: block;
    margin-bottom: .5rem;
    text-decoration: none;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 1rem;
    transition: all 0.3s;
}

.social-icon:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.text-end label {
    width: 100%;
}

/* 響應式調整 */
@media (max-width: 768px) {
    .text-end label {
        display: none;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .feature-card {
        margin-bottom: 2rem;
        padding: 0px 0px;
    }

    .features-section {
        padding: 4rem 0rem 1rem 0rem;
    }
}

input::placeholder {
    font-size: 16px;
    color: #919191 !important;
}


/* 頁面標題 */
.page-header {
    background: linear-gradient(135deg, rgba(43, 108, 176, 0.9), rgba(74, 144, 226, 0.8)), url('../images/erji.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

/* 卡片樣式 */
.dashboard-card {
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 20px;
    border: none;
    overflow: hidden;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.card-header {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    border: none;
    padding: .8rem 1.5rem;
}

/* 賬單表格樣式 */
.bill-table {
    width: 100%;
}

.bill-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    padding: 1rem;
}

.bill-table td {
    padding: 1rem;
    vertical-align: middle;
}

.bill-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.bill-status {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-paid {
    background-color: #d1fae5;
    color: #065f46;
}

.status-pending {
    background-color: #fef3c7;
    color: #92400e;
}

.status-overdue {
    background-color: #fee2e2;
    color: #b91c1c;
}

.bill-amount {
    font-weight: 600;
}

.bill-category {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    background-color: #ebf8ff;
    color: var(--primary-color);
    font-size: 0.8rem;
}

/* 篩選器樣式 */
.filter-section {
    background-color: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* 分頁樣式 */
.pagination {
    justify-content: center;
    margin-top: 2rem;
}

/* 統計卡片 */
.stat-card {
    text-align: center;
    padding: 1.5rem;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #fff;
    font-size: 1.1rem;
}

.icon-success {
    background-color: #d1fae5;
    color: var(--success-color);
}

.icon-primary {
    background-color: #ebf8ff;
    color: var(--primary-color);
}

.icon-info {
    background-color: #ebf8ff;
    color: var(--info-color);
}

.settings-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.2rem;
}

.security-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.5rem;
}

.security-item {
    padding: 1.2rem 0;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.3s;
}

.security-item:hover {
    background-color: #f8f9fa;
}

.security-item:last-child {
    border-bottom: none;
}

.status-enabled {
    background-color: #d1fae5;
    color: #065f46;
}

.security-status {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.edit-section {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1rem;
    border-left: 4px solid var(--primary-color);
    display: none;
    animation: fadeIn 0.4s ease;
}

.security-shield {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-radius: 15px;
    margin: 2rem 0;
}

.shield-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.certification-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 1.2rem;
    border-radius: 25px;
    background-color: #ebf8ff;
    color: var(--primary-color);
    font-weight: 600;
    margin: 0.5rem;
}

.value-card {
    text-align: center;
    padding: 2rem;
    height: 100%;
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.renzh .align-items-center>i {
    width: 32px;

}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 快速操作按钮 */
.quick-action-btn {
    border-radius: 10px;
    padding: 1rem 1.5rem;
    font-weight: 500;
    margin: 0.5rem;
    transition: all 0.3s;
    border: none;
}

.quick-action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.d-grid>.btn {
    margin-bottom: 20px;
}

/* 余额显示 */
.balance-amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin: 1.5rem 0;
}

.balance-subtitle {
    text-align: center;
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.transaction-item {
    padding: 1.2rem 1.2rem;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.3s;
}

.transaction-expense {
    color: #b91c1c;
}

.transaction-income {
    color: #065f46;
}

.transaction-amount {
    font-weight: 600;
}

.settings-section {
    padding: 1.5rem;
}

.badge-verified {
    background-color: #d1fae5;
    color: #065f46;
}

.badge-red {
    background-color: #fad9d1;
    color: #b91c1c;
}

.verification-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    /* margin: 0.2rem; */
}

.verification-badge>i {
    margin-top: 5px;
}

/* 卡片样式 */
.balance-card {
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
    border: none;
    overflow: hidden;
    transition: transform 0.3s;
}

.balance-card:hover {
    transform: translateY(-5px);
}

/* 详情信息样式 */
.detail-item {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid #e9ecef !important;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.detail-value {
    font-size: 1rem;
    color: #0365b7;
}

.amount-display {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin: 1.5rem 0;
    color: var(--primary-color);
}

.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.status-paid {
    background-color: #d1fae5;
    color: #065f46;
}

.status-pending {
    background-color: #fef3c7;
    color: #92400e;
}

.status-overdue {
    background-color: #fee2e2;
    color: #b91c1c;
}

/* 时间线样式 */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #e5e7eb;
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.3rem;
    top: 0.3rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: 3px solid white;
}

.timeline-date {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

/* 操作按钮 */
.action-btn {
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    margin: 0.5rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .amount-display {
        font-size: 2rem;
    }

    .detail-value {
        font-size: 1rem;
    }
}









header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e6ed;
}

.back-btn {
    display: flex;
    align-items: center;
    color: #4a6cf7;
    text-decoration: none;
    font-weight: 500;
}

.back-btn i {
    margin-right: 8px;
}

.page-title {
    font-size: 24px;
    font-weight: 600;
    color: #1e2a35;
}

.user-info {
    display: flex;
    align-items: center;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #4a6cf7;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-left: 15px;
}

.overview-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.card-title {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 10px;
}

.card-value {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 5px;
}

.card-income {
    color: #10b981;
}

.card-expense {
    color: #ef4444;
}

.card-trend {
    font-size: 14px;
    display: flex;
    align-items: center;
}

.trend-up {
    color: #10b981;
}

.trend-down {
    color: #ef4444;
}

.card-body {
    font-size: 15px;
}

.card-body a {
    text-decoration: none;
}

.filters {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    background: white;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.filter-btn.active {
    background: #4a6cf7;
    color: white;
    border-color: #4a6cf7;
}

.filter-btn i {
    margin-right: 6px;
}

.search-box {
    position: relative;
}

.search-box input {
    padding: 8px 16px 8px 40px;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    width: 250px;
    font-size: 14px;
}

.search-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

.bills-table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    overflow-x: auto;
}

.bills-table a {
    text-decoration: none;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e0e6ed;
}

th {
    background-color: #f9fafb;
    font-weight: 500;
    color: #6b7280;
    font-size: 14px;
}

tr:last-child td {
    border-bottom: none;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: #fff;
}

.breadcrumb a {
    color: #fff;
    font-size: 15px;
    text-decoration: none;
}

.category {
    display: flex;
    align-items: center;
}

.category-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: white;
}

.category-food {
    background-color: #f59e0b;
}

.category-shopping {
    background-color: #8b5cf6;
}

.category-transport {
    background-color: #06b6d4;
}

.category-entertainment {
    background-color: #ec4899;
}

.category-bill {
    background-color: #3b82f6;
}

.amount-income {
    color: #10b981;
    font-weight: 500;
}

.amount-expense {
    color: #ef4444;
    font-weight: 800;
}

.status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.status-completed {
    background-color: #d1fae5;
    color: #065f46;
}

.status-pending {
    background-color: #fef3c7;
    color: #92400e;
}

.status-category {
    background-color: #ebf8ff;
    color: var(--primary-color);
}

.bills-table a:hover .status-category {
    background-color: #cde6f3;
    color: #2f5a81;
}

.transaction-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.2rem;
}

.icon-income {
    background-color: #d1fae5;
    color: var(--success-color);
}

.icon-expense {
    background-color: #fee2e2;
    color: var(--danger-color);
}

.icon-refund {
    background-color: #e0f2fe;
    color: var(--info-color);
}

.icon-transfer {
    background-color: #fef3c7;
    color: var(--warning-color);
}

.transaction-amount {
    font-weight: 600;
    font-size: 1.1rem;
}

.charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.chart-container {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.chart-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1e2a35;
}

.chart-placeholder {
    height: 250px;
    background: #f9fafb;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    margin-bottom: 30px;
}

.pagination a {
    text-decoration: none;
}

.pagination-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0e6ed;
    background: white;
    color: #4a6cf7;
    margin: 0 5px;
    border-radius: 8px;
    cursor: pointer;
}

.pagination-btn.active {
    background: #4a6cf7;
    color: white;
    border-color: #4a6cf7;
}

@media (max-width: 768px) {
    .filters {
        flex-direction: column;
    }

    .search-box input {
        width: 100%;
    }

    .charts {
        grid-template-columns: 1fr;
    }
}


@media (min-width : 768px) {
    .col-md-2-half {
        width: 20%;
        float: left;
    }
}

@media (max-width : 767px) {
    .col-md-2-half {
        float: left;
        border-bottom: 1px solid rgb(84 143 208);
        padding: 20px 0px;
    }
    .stats-section{
        padding: 1rem 0rem !important;
    }
    .col-md-2-half:last-child {
        border-bottom: 0px solid rgb(84 143 208);
    }
}