.container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    margin-top: 50px;
}

.input-section {
    margin-bottom: 30px;
}

textarea {
    width: 100%;
    height: 100px;
    padding: 10px;
    margin-bottom: 10px;
}

button {
    padding: 8px 15px;
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
}

button:hover {
    background-color: #45a049;
}

.note-item {
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: opacity 0.3s ease;
}

.note-content {
    flex-grow: 1;
}

.note-text {
    white-space: pre-wrap;
    word-wrap: break-word;
    line-height: 1.5;
}

.note-time {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.history-btn {
    background-color: #2196F3;
}

.history-btn:hover {
    background-color: #1976D2;
}

.pagination {
    margin: 20px 0;
    text-align: center;
}

.page-btn {
    background-color: #2196F3;
    margin: 0 10px;
}

.page-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

#pageInfo {
    display: inline-block;
    padding: 8px 15px;
}

.back-btn {
    background-color: #4CAF50;
}

.back-btn:hover {
    background-color: #45a049;
}

.toolbar {
    margin: 20px 0;
    padding: 10px;
    background-color: #f5f5f5;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.danger-btn {
    background-color: #dc3545;
}

.danger-btn:hover {
    background-color: #c82333;
}

.danger-btn:disabled {
    background-color: #dc354580;
    cursor: not-allowed;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.delete-btn {
    background-color: #dc3545;
    padding: 4px 8px;
    font-size: 0.9em;
}

.delete-btn:hover {
    background-color: #c82333;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border-radius: 5px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.modal-header {
    margin-bottom: 20px;
}

.modal-header h3 {
    margin: 0;
}

.modal-body {
    margin-bottom: 20px;
}

.modal-footer {
    text-align: right;
}

.modal-footer button {
    margin-left: 10px;
}

.modal-input {
    width: 100%;
    padding: 8px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* 提示框样式 */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    background-color: #333;
    color: white;
    border-radius: 4px;
    z-index: 1001;
    display: none;
    animation: slideIn 0.3s ease-out;
}

.toast.success {
    background-color: #4CAF50;
}

.toast.error {
    background-color: #dc3545;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.no-records {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
}

.error-message {
    text-align: center;
    padding: 20px;
    color: #dc3545;
}

.loading-indicator {
    text-align: center;
    padding: 20px;
    color: #666;
}

/* 修改顶部按钮样式，确保对齐 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: 12px;
    padding-right: 15px;
    border-right: 1px solid #eee;
}

#usernameDisplay {
    font-weight: bold;
    color: #333;
    white-space: nowrap;
}

.header-btn {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    min-width: 80px;
}

.logout-btn {
    background-color: #dc3545;
}

.logout-btn:hover {
    background-color: #c82333;
}

.settings-btn {
    background-color: #6c757d;
}

.settings-btn:hover {
    background-color: #5a6268;
}

.primary-btn {
    background-color: #007bff;
}

.primary-btn:hover {
    background-color: #0056b3;
}

/* 中央提示框样式 */
.center-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px 30px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 8px;
    z-index: 1002;
    display: none;
    text-align: center;
    max-width: 80%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s ease-out;
}

.center-toast.success {
    background-color: rgba(76, 175, 80, 0.9);
}

.center-toast.error {
    background-color: rgba(220, 53, 69, 0.9);
}

.center-toast.warning {
    background-color: rgba(255, 193, 7, 0.9);
}

.center-toast.info {
    background-color: rgba(33, 150, 243, 0.9);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.site-notice {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    color: #495057;
    padding: 8px 0;
    font-size: 14px;
    z-index: 1000;
    text-align: center;
    transition: all 0.3s ease;
}

.site-notice .notice-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notice-section {
    margin: 30px 0;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.notice-form textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
}

.site-notice .close-notice {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    padding: 5px;
    font-size: 18px;
    color: #6c757d;
    background: none;
    border: none;
    line-height: 1;
}

.site-notice .close-notice:hover {
    color: #343a40;
}

.note-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.edit-btn, .complete-btn, .save-btn, .cancel-btn {
    padding: 5px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.edit-btn {
    background-color: #4CAF50;
    color: white;
}

.edit-btn:hover {
    background-color: #45a049;
}

.complete-btn {
    background-color: #2196F3;
    color: white;
}

.complete-btn:hover {
    background-color: #1e87dc;
}

.save-btn {
    background-color: #4CAF50;
    color: white;
}

.save-btn:hover {
    background-color: #45a049;
}

.cancel-btn {
    background-color: #f44336;
    color: white;
}

.cancel-btn:hover {
    background-color: #da190b;
}

.edit-input {
    width: 100%;
    min-height: 60px;
    padding: 8px;
    margin: 5px 0;
    border: 2px solid #4CAF50;
    border-radius: 4px;
    font-size: 14px;
    resize: vertical;
}

.edit-input:focus {
    outline: none;
    border-color: #45a049;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
} 