.order-manage-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.api-key-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.api-key-section .form-group {
    display: flex;
    align-items: flex-end;
    gap: 15px;
    flex-wrap: wrap;
}

.api-key-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
    width: 100%;
}

.api-key-section input[type="text"] {
    flex: 1;
    min-width: 300px;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    font-family: 'Courier New', monospace;
}

.api-key-section input[type="text"]:focus {
    outline: none;
    border-color: #667eea;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-submit {
    background: #10b981;
    color: white;
    padding: 8px 16px;
    font-size: 13px;
}

.btn-submit:hover:not(:disabled) {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.btn-completed {
    background: #6b7280 !important;
    color: white !important;
}

.order-completed {
    background-color: #f0fdf4 !important;
}

.order-completed:hover {
    background-color: #dcfce7 !important;
}

.loading-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 30px;
    color: #666;
}

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-message {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.orders-container {
    margin-top: 30px;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    table-layout: auto;
}

.orders-table th:first-child,
.orders-table td:first-child {
    width: auto;
    min-width: 100px;
}

.orders-table th:nth-child(2),
.orders-table td:nth-child(2) {
    width: auto;
    min-width: 150px;
}

.orders-table th:nth-child(3),
.orders-table td:nth-child(3) {
    width: auto;
    min-width: 80px;
}

.orders-table th:nth-child(4),
.orders-table td:nth-child(4) {
    width: auto;
    min-width: 100px;
}

.orders-table th:nth-child(5),
.orders-table td:nth-child(5) {
    width: auto;
    min-width: 100px;
}

.orders-table th:nth-child(6),
.orders-table td:nth-child(6) {
    width: 100%;
}

.orders-table thead {
    background: #f9fafb;
    border-bottom: 2px solid #e5e7eb;
}

.orders-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Right align headers for Order ID, Quantity, Amount, Status */
/* Name column is left-aligned */
.orders-table th:nth-child(1),
.orders-table th:nth-child(3),
.orders-table th:nth-child(4),
.orders-table th:nth-child(5) {
    text-align: right;
}

.orders-table th:nth-child(2) {
    text-align: left;
}

.orders-table tbody tr {
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.2s ease;
}

.orders-table tbody tr:hover {
    background-color: #f9fafb;
}

.orders-table tbody tr:last-child {
    border-bottom: none;
}

.orders-table td {
    padding: 12px 16px;
    vertical-align: middle;
    font-size: 14px;
}

/* Right align Order ID, Quantity, Amount, Status columns */
/* Name column is left-aligned */
.orders-table td:nth-child(1),
.orders-table td:nth-child(3),
.orders-table td:nth-child(4),
.orders-table td:nth-child(5) {
    text-align: right;
}

.orders-table td:nth-child(2) {
    text-align: left;
}

.order-id {
    font-weight: 600;
    color: #667eea;
    font-family: 'Courier New', monospace;
    white-space: nowrap;
}

.order-name {
    color: #374151;
    max-width: 200px;
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    line-height: 1.4;
}

.order-quantity {
    color: #6b7280;
    white-space: nowrap;
}

.order-amount {
    color: #059669;
    font-weight: 600;
    white-space: nowrap;
}

.order-status {
    white-space: nowrap;
}

.order-accounts {
    width: 100%;
    min-width: 300px;
}

.order-actions {
    text-align: center;
    white-space: nowrap;
    width: 1%;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-processing {
    background: #dbeafe;
    color: #1e40af;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-completed {
    background: #d1fae5;
    color: #065f46;
}

.status-error {
    background: #fee2e2;
    color: #991b1b;
}

.accounts-input-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.file-import-section {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.file-import-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f3f4f6;
    border: 1px dashed #d1d5db;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    color: #4b5563;
    transition: all 0.3s ease;
    user-select: none;
    width: fit-content;
}

.file-import-label:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
    color: #374151;
}

.file-import-label:active {
    transform: scale(0.98);
}

.file-import-label svg {
    flex-shrink: 0;
}

.accounts-input-section label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.accounts-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 12px;
    font-family: 'Courier New', monospace;
    resize: vertical;
    transition: border-color 0.3s ease;
    min-height: 60px;
}

.accounts-input:focus {
    outline: none;
    border-color: #667eea;
}

.no-orders {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 1.1em;
}

.auto-refresh-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 8px 12px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 6px;
    color: #0369a1;
    font-size: 13px;
}

.refresh-indicator {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

