/* ================================================
   房屋出租管理系统 - 自定义样式
   ================================================ */

body {
    padding-top: 60px;
    background: #f5f5f5;
}

.main-content {
    padding: 20px 15px;
}

/* 卡片样式 */
.card {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 20px;
}

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

.card-header h3 {
    margin: 0;
    font-size: 18px;
}

/* 统计卡片 */
.stat-card {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.stat-card .icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.stat-card .number {
    font-size: 28px;
    font-weight: bold;
    margin: 5px 0;
}

.stat-card .label-text {
    color: #666;
    font-size: 14px;
}

.stat-card.warning .number { color: #f0ad4e; }
.stat-card.success .number { color: #5cb85c; }
.stat-card.info .number { color: #5bc0de; }
.stat-card.danger .number { color: #d9534f; }

/* 表格操作按钮 */
.action-bar {
    margin-bottom: 15px;
}

.action-btn {
    margin-right: 5px;
}

/* 搜索框 */
.search-form {
    margin-bottom: 15px;
}

.search-form .input-group {
    max-width: 400px;
}

/* badge 状态标签 */
.status-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: normal;
}

.status-badge.active { background: #5cb85c; color: #fff; }
.status-badge.expired { background: #d9534f; color: #fff; }
.status-badge.terminated { background: #f0ad4e; color: #fff; }
.status-badge.vacant { background: #5bc0de; color: #fff; }
.status-badge.rented { background: #5cb85c; color: #fff; }
.status-badge.maintenance { background: #d9534f; color: #fff; }

/* 表格 */
.table > tbody > tr > td {
    vertical-align: middle;
}

/* 分页 */
.pagination-wrapper {
    text-align: center;
    margin-top: 15px;
}

/* 页面标题 */
.page-header {
    margin-top: 0;
    padding-bottom: 9px;
}

/* 表单 */
.form-section {
    margin-bottom: 20px;
}

/* Footer */
.footer {
    padding: 15px 0;
    border-top: 1px solid #eee;
    margin-top: 30px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .stat-card .number {
        font-size: 22px;
    }
    .stat-card .icon {
        font-size: 28px;
    }
}

/* 提示信息动画 */
.alert {
    border-radius: 4px;
}
