/* 全局统一样式 - 存款数据管理系统 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    padding-bottom: 60px;
}

/* 容器响应式 */
.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px) { .container { max-width: 540px; } }
@media (min-width: 768px) { .container { max-width: 720px; } }
@media (min-width: 992px) { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1140px; } }

/* 导航栏 */
.navbar {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 15px 0;
    margin-bottom: 30px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: #165DFF;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 8px;
    background: #f0f7ff;
}

.navbar-menu-wrapper {
    flex: 1;
    margin: 0 20px;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    flex-wrap: wrap;
}

.navbar-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 8px;
    color: #4E5969;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.navbar-menu a.active {
    background: linear-gradient(135deg, #165DFF 0%, #0E42D2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(22, 93, 255, 0.2);
}

.navbar-menu a:hover:not(.active) {
    background-color: #f0f7ff;
    color: #165DFF;
}

.navbar-user {
    padding: 8px 15px;
    background: #f9fafb;
    border-radius: 8px;
    font-size: 13px;
    color: #86909C;
}

/* 消息提示 */
.message {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.message-success {
    background-color: #f0f9ff;
    color: #165DFF;
    border-left: 4px solid #165DFF;
}

.message-error {
    background-color: #fef0f0;
    color: #F53F3F;
    border-left: 4px solid #F53F3F;
}

/* 页面头部 */
.page-header {
    background: linear-gradient(135deg, #165DFF 0%, #0E42D2 100%);
    color: white;
    padding: 25px 20px;
    border-radius: 15px;
    margin-bottom: 25px;
    box-shadow: 0 8px 24px rgba(22, 93, 255, 0.15);
}

.page-header h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 标签页 */
.tabs {
    display: flex;
    background: white;
    border-radius: 10px;
    padding: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    overflow-x: auto;
    scrollbar-width: none;
}

.tabs::-webkit-scrollbar { display: none; }

.tab-item {
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #667085;
    cursor: pointer;
    border-radius: 8px;
    white-space: nowrap;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.tab-item.active {
    background: linear-gradient(135deg, #165DFF 0%, #0E42D2 100%);
    color: white;
    box-shadow: 0 4px 8px rgba(22, 93, 255, 0.2);
}

.tab-item:hover:not(.active) {
    background-color: #f0f7ff;
    color: #165DFF;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 表单卡片 */
.form-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

.form-card h5 {
    font-size: 18px;
    font-weight: 700;
    color: #1D2939;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-card h5 i { color: #165DFF; font-size: 20px; }

/* 表单控件 */
.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #4E5969;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    font-size: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: #165DFF;
    box-shadow: 0 0 0 4px rgba(22, 93, 255, 0.1);
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary { background: linear-gradient(135deg, #165DFF 0%, #0E42D2 100%); color: white; }
.btn-success { background: linear-gradient(135deg, #00B42A 0%, #009A22 100%); color: white; }
.btn-warning { background: linear-gradient(135deg, #FF7D00 0%, #E06E00 100%); color: white; }
.btn-danger { background: linear-gradient(135deg, #F53F3F 0%, #D93030 100%); color: white; }
.btn-secondary { background: linear-gradient(135deg, #86909C 0%, #737F8C 100%); color: white; }

.btn-sm { padding: 8px 12px; font-size: 12px; }
.w-100 { width: 100% !important; }
.mt-3 { margin-top: 15px !important; }
.mt-4 { margin-top: 20px !important; }
.mb-3 { margin-bottom: 15px !important; }
.mb-4 { margin-bottom: 20px !important; }

/* 输入框组 */
.input-group {
    display: flex;
    width: 100%;
}

.input-group .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* 列表组 */
.list-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.list-group-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: white;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.list-group-item:hover {
    background: #f9fafb;
    border-color: #e5e7eb;
}

/* 表格样式 */
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

.data-table th {
    background: #f9fafb;
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
    color: #1D2939;
    border-bottom: 1px solid #f0f0f0;
}

.data-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #f9fafb;
    vertical-align: middle;
}

.data-table tbody tr:hover { background: #f9fafb; }

.table-responsive {
    overflow-x: auto;
    border-radius: 10px;
    margin-top: 10px;
}

/* 空状态 */
.empty-state {
    padding: 50px 20px;
    text-align: center;
    background: #f9fafb;
    border-radius: 10px;
    margin: 20px 0;
}

.empty-state i {
    font-size: 50px;
    color: #d0d5dd;
    margin-bottom: 15px;
}

/* 编辑表单 */
.edit-form {
    background: #f9fafb;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* 网格系统 */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.col-12 { width: 100%; padding: 0 10px; }
.col-md-3 { width: 25%; padding: 0 10px; }
.col-md-6 { width: 50%; padding: 0 10px; }
.col-lg-8 { width: 66.6667%; padding: 0 10px; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* 工具类 */
.d-flex { display: flex !important; }
.gap-2 { gap: 8px !important; }
.text-danger { color: #F53F3F !important; }
.fw-medium { font-weight: 500 !important; }
.fw-bold { font-weight: 700 !important; }
.text-center { text-align: center !important; }

/* 登录页专用 */
.login-container {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f0ff 100%);
}

.login-card {
    width: 100%;
    max-width: 450px;
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(22, 93, 255, 0.1);
}

.login-card .logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-card .logo h1 {
    color: #165DFF;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.login-card .logo p {
    color: #86909C;
    font-size: 14px;
}

/* 看板统计卡片 */
.stats-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
    margin-bottom: 20px;
}

.stats-card h5 {
    font-size: 16px;
    color: #86909C;
    margin-bottom: 15px;
    font-weight: 500;
}

.stats-card .value {
    font-size: 32px;
    font-weight: 700;
    color: #165DFF;
    margin-bottom: 5px;
}

.stats-card .label {
    font-size: 14px;
    color: #86909C;
}

/* 页脚 */
.footer {
    background: #fff;
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid #f0f0f0;
    margin-top: 40px;
}

.footer p { color: #86909C; font-size: 14px; }

/* 移动端适配 */
@media (max-width: 992px) {
    .navbar .container { flex-direction: column; gap: 15px; align-items: flex-start; }
    .navbar-menu-wrapper { width: 100%; margin: 0; }
    .navbar-menu { width: 100%; justify-content: flex-start; }
    .navbar-user { width: 100%; text-align: center; }
    
    .col-md-3, .col-md-6 { width: 100%; margin-bottom: 15px; }
    .col-lg-8 { width: 100%; }
    
    .input-group { flex-direction: column; gap: 10px; }
    .input-group .form-control, .input-group .btn { border-radius: 8px !important; width: 100%; }
    .btn { width: 100%; margin-bottom: 10px; }
}

@media (max-width: 576px) {
    .page-header { padding: 20px 15px; }
    .page-header h2 { font-size: 20px; }
    .form-card { padding: 20px 15px; }
    .tab-item { padding: 10px 15px; font-size: 13px; }
    .data-table th, .data-table td { padding: 12px 15px; font-size: 13px; }
    .message { padding: 12px 15px; font-size: 13px; }
    
    .login-card { padding: 30px 20px; }
    .stats-card .value { font-size: 24px; }
}