/* 太和酒店管理系统 - 样式 */
body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
}

.header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

.nav a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    padding: 8px 15px;
    border-radius: 4px;
    transition: background 0.3s;
}

.nav a:hover {
    background: rgba(255,255,255,0.2);
}

.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.footer {
    text-align: center;
    padding: 20px;
    color: #666;
    margin-top: 40px;
}

/* 登录页面 */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 40px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.login-container h2 {
    text-align: center;
    color: #1e3c72;
    margin-bottom: 30px;
}

.login-form .form-group,
.form-group {
    margin-bottom: 20px;
}

.login-form label,
label {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
}

.btn-primary {
    background: #1e3c72;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background: #2a5298;
}

.btn-secondary {
    background: #666;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
    display: inline-block;
}

.error {
    color: red;
    margin-bottom: 10px;
}

/* 仪表盘 */
.dashboard h2 {
    color: #1e3c72;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    text-align: center;
}

.stat-card h3 {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.stat-number {
    font-size: 36px;
    font-weight: bold;
    color: #1e3c72;
}

.quick-actions {
    background: white;
    padding: 25px;
    border-radius: 8px;
    margin-top: 30px;
}

.quick-actions h3 {
    margin-bottom: 15px;
    color: #333;
}

.quick-actions .btn {
    margin-right: 10px;
}

/* 房态图 */
.room-status-page h2 {
    color: #1e3c72;
}

.room-legend {
    margin: 20px 0;
}

.legend-item {
    display: inline-block;
    margin-right: 20px;
}

.legend-item .dot {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin-right: 5px;
    vertical-align: middle;
}

.dot.available { background: #4CAF50; }
.dot.occupied { background: #f44336; }
.dot.cleaning { background: #FF9800; }
.dot.maintenance { background: #9E9E9E; }

.room-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.room {
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.room:hover {
    transform: scale(1.05);
}

.room-available {
    background: #4CAF50;
    color: white;
}

.room-occupied {
    background: #f44336;
    color: white;
}

.room-cleaning {
    background: #FF9800;
    color: white;
}

.room-maintenance {
    background: #9E9E9E;
    color: white;
}

.room-number {
    font-size: 24px;
    font-weight: bold;
}

.room-type {
    font-size: 12px;
    margin-top: 5px;
}

/* 表格样式 */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.data-table th {
    background: #1e3c72;
    color: white;
    padding: 15px;
    text-align: left;
}

.data-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.data-table tr:hover {
    background: #f5f5f5;
}

/* 表单 */
.form-container {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    max-width: 600px;
    margin: 20px auto;
}

.form-container h2 {
    color: #1e3c72;
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.form-row.full {
    grid-template-columns: 1fr;
}

.form-container select,
.form-container input,
.form-container textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.form-container button[type="submit"] {
    margin-top: 10px;
}