/* General Body & Layout */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f8f9fa;
    color: #212529;
    line-height: 1.6;
    padding: 2rem;
    margin: 0;
}

/* Headings */
h1, h2 {
    color: #343a40;
    font-weight: 600;
    width: 100%;
}

h1 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 2rem;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 1.3rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #dee2e6;
    margin-top: 0;
}

/* Input Fields */
input[type="text"] {
    font-size: 1rem;
    padding: 12px 15px;
    width: 100%;
    box-sizing: border-box;
    background-color: #ffffff;
    color: #495057;
    border: 1px solid #ced4da;
    border-radius: 8px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="text"]:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.15);
}

/* Radio Buttons for Mode Selection */
.mode-selection {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.mode-selection label {
    cursor: pointer;
    padding: 8px 16px;
    border: 1px solid #ced4da;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.mode-selection input[type="radio"] {
    display: none;
}

.mode-selection input[type="radio"]:checked + label {
    background-color: #007bff;
    color: #ffffff;
    border-color: #007bff;
}

/* Main Layout */
.main-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.left-panel, .right-panel {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: calc(100vh - 120px);
}

.left-panel {
    width: 50%;
}

.right-panel {
    width: 50%;
}

.pending-container, .inventory-container {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-height: 0;
}

.item-list {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 10px; /* Space for scrollbar */
}

/* Item Cards */
.pending-item, .inventory-item {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.pending-item:hover, .inventory-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.item-info {
    flex-grow: 1;
    font-size: 0.95rem;
}

.item-info strong {
    color: #343a40;
}

/* Quantity Controls */
.quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quantity-controls button {
    font-size: 1rem;
    font-weight: bold;
    width: 28px;
    height: 28px;
    line-height: 28px;
    padding: 0;
    text-align: center;
    border-radius: 50%;
    background-color: #e9ecef;
    color: #495057;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.quantity-controls button:hover {
    background-color: #dee2e6;
}

.quantity-controls span {
    font-size: 1rem;
    min-width: 30px;
    text-align: center;
    font-weight: 500;
}

/* Action Buttons */
.pending-item-actions {
    display: flex;
    gap: 10px;
    margin-left: 1rem;
}

.accept-btn, .decline-btn, #exportBtn {
    font-size: 0.85rem;
    padding: 6px 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s, transform 0.2s;
}

.accept-btn { background-color: #d1e7dd; color: #0f5132; }
.accept-btn:hover { background-color: #b9d7c8; }

.decline-btn { background-color: #f8d7da; color: #842029; }
.decline-btn:hover { background-color: #f1c2c6; }

/* Inventory Header */
.inventory-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.inventory-header h2 {
    margin: 0;
    border: none;
}

#exportBtn {
    background-color: #cff4fc;
    color: #055160;
}

#exportBtn:hover {
    background-color: #b6effb;
}

/* Highlight */
.highlight {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-layout {
        flex-direction: column;
    }

    .left-panel, .right-panel {
        width: 100%;
        box-sizing: border-box;
        height: auto;
        max-height: 50vh;
    }
}

@media (max-width: 768px) {
    body { padding: 1rem; }
    h1 { font-size: 1.8rem; }
    .left-panel, .right-panel { padding: 1rem; }
}