body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    background-color: #f0f2f5;
    margin: 0;
    padding: 0;
}

.header {
    background-color: #007bff;
    color: white;
    padding: 20px;
    text-align: center;
    font-size: 24px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.container {
    max-width: 960px;
    margin: 20px auto;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.section-title {
    font-size: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.button {
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-bottom: 15px;
}

.button:hover {
    background-color: #0056b3;
}

.parking-slot-card {
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    background-color: #f9f9f9;
    position: relative;
}

.parking-slot-card.expired {
    border-color: #dc3545; /* 红色边框 */
    background-color: #fff0f0; /* 浅红色背景 */
}

/* 新增：即将过期的高亮样式 */
.parking-slot-card.expiring-soon {
    border-color: #ffc107; /* 琥珀色边框 */
    background-color: #fffde0; /* 浅黄色背景 */
}

.parking-slot-card p {
    margin: 5px 0;
    font-size: 14px;
    line-height: 1.5;
}

.parking-slot-card strong {
    color: #333;
}

.card-actions {
    position: absolute;
    top: 15px;
    right: 15px;
}

.card-actions .edit-button,
.card-actions .delete-button {
    background-color: #6c757d;
    color: white;
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 5px;
    font-size: 12px;
}

.card-actions .edit-button {
    background-color: #28a745;
}

.card-actions .edit-button:hover {
    background-color: #218838;
}

.card-actions .delete-button {
    background-color: #dc3545;
}

.card-actions .delete-button:hover {
    background-color: #c82333;
}

/* Modal Styles */
.modal {
    display: none; /* 默认隐藏 */
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
    position: relative;
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-content label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 14px;
}

.modal-content input[type="text"],
.modal-content input[type="date"],
.modal-content input[type="number"],
.modal-content select,
.modal-content textarea {
    width: calc(100% - 20px); /* 减去 padding */
    padding: 8px 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.modal-content textarea {
    resize: vertical; /* 允许垂直调整大小 */
    min-height: 60px;
}

.modal-content .form-actions {
    text-align: right;
    margin-top: 20px;
}

.modal-content .form-actions .save-button {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.modal-content .form-actions .save-button:hover {
    background-color: #0056b3;
}