/* 装修公司客户管理系统 - 自定义样式 */

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

.footer {
    margin-top: auto;
}

/* 登录页面样式 */
.login-form {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.login-form h2 {
    text-align: center;
    margin-bottom: 20px;
}

/* 客户详情页面样式 */
.customer-details .card {
    margin-bottom: 20px;
}

.customer-details .card-header {
    font-weight: bold;
}

/* 表格样式 */
.table-responsive {
    overflow-x: auto;
}

.table th {
    background-color: #f8f9fa;
}

/* 表单样式 */
.required-field::after {
    content: "*";
    color: red;
    margin-left: 4px;
}

/* 客户跟进记录样式 */
.follow-up-item {
    border-left: 3px solid #007bff;
    padding-left: 10px;
    margin-bottom: 15px;
}

.follow-up-date {
    font-size: 0.85rem;
    color: #6c757d;
}

/* 跟进记录编写框卡片样式 */
.follow-up-entry {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 15px;
    transition: box-shadow 0.3s ease;
}

.follow-up-entry:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 仪表盘卡片样式 */
.dashboard-card {
    transition: transform 0.3s;
}

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

.dashboard-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* 导入导出页面样式 */
.import-export-container {
    max-width: 600px;
    margin: 0 auto;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* ========== 客户详情页面美化 ========== */
.customer-details .card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    margin-bottom: 15px;
}

.customer-details .card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.customer-details .card-header {
    padding: 15px 20px;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #4b6cb7 0%, #182848 100%);
    color: white;
    border-bottom: none;
}

.customer-details .card-body {
    padding: 15px;
}

/* 表格美化 */
.customer-details .table {
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.customer-details .table tr {
    transition: background-color 0.2s;
}

.customer-details .table tr:hover {
    background-color: rgba(75, 108, 183, 0.05);
}

.customer-details .table th,
.customer-details .table td {
    padding: 12px 15px;
    vertical-align: middle;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
}

.customer-details .table tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.02);
}

/* 跟进记录美化 */
.customer-details .follow-up-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 25px;
    border-left: none;
}

.customer-details .follow-up-item:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #4b6cb7;
    border: 3px solid #e9f0ff;
}

.customer-details .follow-up-item:after {
    content: "";
    position: absolute;
    left: 7px;
    top: 16px;
    width: 2px;
    height: calc(100% - 16px);
    background: #e9f0ff;
}

.customer-details .follow-up-date {
    font-weight: 600;
    color: #4b6cb7;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.customer-details .follow-up-date i {
    margin-right: 8px;
    font-size: 1rem;
}

.customer-details .follow-up-content {
    background: #f8faff;
    padding: 15px;
    border-radius: 8px;
    line-height: 1.6;
}

/* 按钮美化 */
.customer-details .btn-primary {
    background: linear-gradient(135deg, #4b6cb7 0%, #182848 100%);
    border: none;
    box-shadow: 0 2px 10px rgba(75, 108, 183, 0.3);
    transition: all 0.3s;
}

.customer-details .btn-primary:hover {
    background: linear-gradient(135deg, #3a5aa3 0%, #121d36 100%);
    box-shadow: 0 4px 15px rgba(75, 108, 183, 0.4);
    transform: translateY(-1px);
}

/* 加载动画 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.customer-details .card {
    animation: fadeIn 0.5s ease forwards;
}

.customer-details .card:nth-child(2) {
    animation-delay: 0.1s;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .customer-details .card-body {
        padding: 15px;
    }
    
    .customer-details .table th,
    .customer-details .table td {
        padding: 8px 10px;
    }
    
    .customer-details .follow-up-item {
        padding-left: 25px;
    }
}

/* 自定义滚动条样式 - 使滚动条变细 */
/* WebKit浏览器（Chrome、Safari等） */
::-webkit-scrollbar {
    width: 3px;  /* 垂直滚动条宽度 */
    height: 3px; /* 水平滚动条高度 */
}

::-webkit-scrollbar-track {
    background: #f1f1f1; /* 滚动条轨道背景色 */
    border-radius: 10px;
    margin: 2px 0; /* 轨道上下留出空间，使滚动条两端显示圆角 */
}

::-webkit-scrollbar-thumb {
    /* 渐变蓝色效果 */
    background: linear-gradient(to bottom, #00c6ff, #0072ff);
    border-radius: 10px; /* 圆角效果 */
    border: none; /* 移除边框，在细滚动条上边框会占用太多空间 */
    min-height: 30px; /* 确保滚动条滑块有最小高度 */
}

/* 专门处理垂直滚动条的样式 */
::-webkit-scrollbar-thumb:vertical {
    border-radius: 10px;
    background: linear-gradient(to bottom, #00c6ff, #0072ff);
}

::-webkit-scrollbar-thumb:hover {
    /* 鼠标悬停时的渐变效果 */
    background: linear-gradient(to bottom, #0072ff, #00c6ff);
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.2); /* 添加轻微阴影效果 */
}

/* 滚动条两端的按钮 */
::-webkit-scrollbar-button {
    display: none; /* 隐藏滚动条按钮 */
}

/* Firefox浏览器 */
* {
    scrollbar-width: thin; /* 设置滚动条为细版本 */
    scrollbar-color: #0072ff #f1f1f1; /* 滑块颜色(蓝色) 轨道颜色 */
}

/* SweetAlert2 自定义样式 */
.swal2-popup {
    font-family: 'Arial', sans-serif;
    border-radius: 8px;
}

.swal2-title {
    font-size: 1.5em;
    color: #333;
}

.swal2-content {
    font-size: 1.1em;
}

.swal2-confirm {
    background-color: #4e73df !important;
    transition: all 0.2s;
}

.swal2-confirm:hover {
    background-color: #3a5bd9 !important;
    transform: translateY(-1px);
}

.swal2-cancel {
    transition: all 0.2s;
}

.swal2-cancel:hover {
    transform: translateY(-1px);
}

/* 加载动画 */
.swal2-loading {
    border-color: #4e73df transparent #4e73df transparent !important;
}