.tabs {
    display: flex;
    gap: 5px;
    padding: 0 30px;
    margin-bottom: 20px;
    margin-top: 20px;
}

.tab-button {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    border-radius: 5px 5px 0 0;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.tab-button:hover {
    background: #f5f5f5;
}

.tab-button.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.create-section,
.list-section {
    background: white;
    padding: 30px;
    margin: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.file-upload-area {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.file-upload-area:hover {
    border-color: #667eea;
    background: #f9f9f9;
}

.file-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.file-icon {
    font-size: 48px;
}

.file-name {
    margin-top: 10px;
    color: #666;
}

.format-info {
    margin: 20px 0;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 5px;
}

.format-info ul {
    margin: 10px 0;
    padding-left: 20px;
}

.format-info li {
    margin: 5px 0;
}

.code-block {
    margin: 15px 0;
    background: #272822;
    color: #f8f8f2;
    padding: 12px 14px;
    border-radius: 6px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    white-space: pre;
    overflow-x: auto;
}

.format-actions {
    margin-top: 15px;
}

.upload-results {
    margin-top: 20px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 5px;
}

.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-results {
    margin-top: 20px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 5px;
    margin-bottom: 10px;
}

.allocation-form {
    margin-top: 20px;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 5px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.form-input,
.form-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.available-stock {
    padding: 10px;
    background: #e3f2fd;
    border-radius: 5px;
    margin-bottom: 15px;
    text-align: right;
}

.filter-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.filter-btn {
    padding: 8px 20px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.filter-btn:hover {
    background: #f5f5f5;
}

.filter-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.allocations-list {
    margin-top: 20px;
}

.allocation-item {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.allocation-info {
    flex: 1;
}

.allocation-status {
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 12px;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-committed {
    background: #d4edda;
    color: #155724;
}

.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.status-expired {
    background: #e2e3e5;
    color: #6c757d;
}

.allocation-actions {
    display: flex;
    gap: 10px;
}

/* ローディングオーバーレイ */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(2px);
}

.loading-content {
    background: white;
    padding: 40px 60px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 400px;
}

.loading-content h3 {
    margin: 20px 0 10px 0;
    color: #333;
    font-size: 1.5em;
}

.loading-content p {
    margin: 10px 0;
    color: #666;
    line-height: 1.6;
}

.loading-spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #667eea;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

