* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-image: url('image/woodBG.png');
    background-repeat: repeat;
    background-attachment: fixed;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

h1 {
    text-align: center;
    color: white;
    margin-bottom: 30px;
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.print-all-container {
    text-align: center;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.filter-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-container label {
    color: white;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.project-filter,
.project-select {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1em;
    font-family: inherit;
    background: white;
    cursor: pointer;
    min-width: 200px;
}

.project-filter:hover,
.project-select:hover {
    border-color: #667eea;
}

.project-filter:focus,
.project-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 5px rgba(102, 126, 234, 0.3);
}

.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.list-box {
    background-image: url('image/paperBG.png');
    background-repeat: repeat;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

.list-box h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.3em;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.list-area {
    flex: 1;
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 10px;
    min-height: 250px;
    overflow-y: auto;
    overflow-x: visible;
    background: #f9f9f9;
}

.list-item {
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.list-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.list-item.expanded {
    border-color: #667eea;
}

.list-item.selected {
    background: #e3f2fd;
    border-color: #2196f3;
}

.list-item.dragging {
    opacity: 0.5;
    border: 2px dashed #667eea;
}

.list-item h3 {
    color: #333;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.list-item p {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.list-item .date {
    color: #999;
    font-size: 0.8em;
}

.list-item .item-description {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    color: #666;
    font-size: 0.9em;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
}


.list-area.drag-over {
    background: #e8f5e9;
    border-color: #4caf50;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    justify-content: center;
}

.btn {
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: all 0.3s ease;
    background-image: url('image/button.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    background-color: transparent;
    color: white;
}

.btn:hover:not(:disabled) {
    background-image: url('image/buttonHover.png');
}

.btn:active:not(:disabled),
.btn.selected {
    background-image: url('image/buttonSelected.png');
}

.btn:disabled {
    background-image: url('image/buttonDisabled.png');
    cursor: not-allowed;
    opacity: 1;
}

/* All buttons now use the same button images - no individual styling needed */

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
}

.modal-content {
    background-image: url('image/paperBG.png');
    background-repeat: repeat;
    margin: 5% auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

#modalTitle {
    color: #333;
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
}

.project-section {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.7);
}

.project-header {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.project-header label {
    margin: 0;
    font-weight: 600;
    color: #333;
}

.project-header #projectDisplay {
    flex: 1;
    color: #666;
    font-weight: normal;
}

.project-toggle {
    color: #667eea;
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.project-content {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #ddd;
}

.form-group input[type="text"],
.form-group input[type="datetime-local"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1em;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
}

.checkbox-group {
    display: flex;
    gap: 30px;
    align-items: center;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.form-buttons {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 25px;
}

.empty-message {
    text-align: center;
    color: #999;
    padding: 40px 20px;
    font-style: italic;
}

/* Scrollbar Styling */
.list-area::-webkit-scrollbar {
    width: 8px;
}

.list-area::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.list-area::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.list-area::-webkit-scrollbar-thumb:hover {
    background: #555;
}

