
#order-history-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
    direction: rtl;
    text-align: right;
}

#login-form-container,
#order-history-container-inner {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

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

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

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #0073aa;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 14px;
}

button {
    background: #0073aa;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-left: 10px;
    transition: background-color 0.3s;
}

button:hover {
    background: #005a87;
}

button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

#resend-code-btn {
    background: #666;
}

#resend-code-btn:hover {
    background: #555;
}

.order-item {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.order-info {
    flex: 1;
}

.order-number {
    font-size: 18px;
    font-weight: bold;
    color: #0073aa;
}

.order-date {
    color: #666;
    font-size: 14px;
}

.order-status {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    background: #28a745;
    color: white;
}

.order-total {
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.order-items {
    margin: 15px 0;
}

.item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.item:last-child {
    border-bottom: none;
}

.item-name {
    font-weight: bold;
    flex: 1;
}

.item-quantity {
    color: #666;
    margin: 0 15px;
}

.item-price {
    font-weight: bold;
    color: #0073aa;
}

.reorder-btn {
    background: #28a745;
    padding: 10px 20px;
    font-size: 14px;
}

.reorder-btn:hover {
    background: #218838;
}

.order-addresses {
    margin-top: 15px;
    display: flex;
    gap: 20px;
}

.address-block {
    flex: 1;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
}

.address-title {
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

#messages {
    margin-top: 20px;
}

.message {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.message.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.message.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.message.info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

@media (max-width: 768px) {
    #order-history-container {
        padding: 10px;
    }
    
    #login-form-container,
    #order-history-container-inner {
        padding: 20px;
    }
    
    .order-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .order-addresses {
        flex-direction: column;
    }
    
    .item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .item-quantity,
    .item-price {
        margin: 5px 0;
    }
}
